Systemd service
Перейти к навигации
Перейти к поиску
owncloud-nginx.service
migrating to 3rdparty binaries
[Unit]
Description=ownCloud nginx
Requires=owncloud-php-fpm.service
After=owncloud-php-fpm.service
[Service]
User=owncloud
Type=forking
PIDFile=/opt/app/owncloud/nginx/logs/nginx.pid
ExecStartPre=/opt/app/owncloud/nginx/sbin/nginx -t -c /opt/app/owncloud/config/nginx.conf -p /opt/app/owncloud/nginx
ExecStart=/opt/app/owncloud/nginx/sbin/nginx -c /opt/app/owncloud/config/nginx.conf -p /opt/app/owncloud/nginx
ExecReload=/opt/app/owncloud/nginx/sbin/nginx -c /opt/app/owncloud/config/nginx.conf -s reload -p /opt/app/owncloud/nginx
ExecStop=/opt/app/owncloud/nginx/sbin/nginx -c /opt/app/owncloud/config/nginx.conf -s stop -p /opt/app/owncloud/nginx
[Install]
WantedBy=multi-user.target
owncloud-php-fpm.service
ldap integration WIP
[Unit]
Description=ownCloud php fpm
Requires=owncloud-postgresql.service
After=owncloud-postgresql.service
[Service]
User=owncloud
Type=forking
PIDFile=/opt/data/owncloud/php-fpm.pid
ExecStart=/opt/app/owncloud/php/sbin/php-fpm -y /opt/app/owncloud/config/php-fpm.conf -c /opt/app/owncloud/config/php.ini
Environment=LD_LIBRARY_PATH=/opt/app/owncloud/php/lib
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
owncloud-postgresql.service
cleanup
[Unit]
Description=ownCloud PostgreSQL database server
Requires=network.target
After=network.target
[Service]
User=owncloud
Type=forking
SyslogIdentifier=postgres
PIDFile=/opt/data/owncloud/database/postmaster.pid
ExecStartPre=/opt/app/owncloud/bin/initdb
ExecStart=/opt/app/owncloud/postgresql/bin/pg_ctl -w -s -D /opt/data/owncloud/database start
ExecReload=/opt/app/owncloud/postgresql/bin/pg_ctl -s -D /opt/data/owncloud/database reload
ExecStop=/opt/app/owncloud/postgresql/bin/pg_ctl -s -D /opt/data/owncloud/database stop -m fast
# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in
# killing Postgres
OOMScoreAdjust=-200
[Install]
WantedBy=multi-user.target