blob: 2af42c794e093583f8cc940977c619f003ee7800 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
[Unit]
Description=nextcloud uwsgi service
After=network.target redis.service
Before=nginx.service
Requires=nextcloud.socket
[Service]
Type=notify
DynamicUser=yes
User=nextcloud
Group=nextcloud
RuntimeDirectory=nextcloud
StateDirectory=nextcloud
Environment=NEXTCLOUD_CONFIG_DIR=/var/lib/nextcloud
ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/nextcloud.ini:service --master-fifo /run/nextcloud/master-fifo
ExecStop=/bin/bash -c 'echo q > /run/nextcloud/master-fifo'
## uncoment any of these if you want to misuse the `systemctl reload` mechanism
## to do a files rescan or an upgrade in the proper environment
#ExecReload=/usr/bin/php /usr/share/webapps/nextcloud/occ upgrade
#ExecReload=/usr/bin/php /usr/share/webapps/nextcloud/occ files:scan --all
ExecReload=/bin/bash -c 'echo w > /run/nextcloud/master-fifo'
NoNewPrivileges=yes
ProtectHome=yes
PrivateDevices=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
[Install]
WantedBy=multi-user.target
Also=nextcloud.socket
|