blob: c9197f62c8ded2e0e5fe89d52e53adab22262ad4 (
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
34
35
36
|
[Unit]
Description=Monica CRM schedule:run
[Service]
Type=oneshot
ExecStart=/usr/bin/php artisan schedule:run
User=http
Group=http
WorkingDirectory=/usr/share/webapps/monica-crm
PrivateTmp=true
PrivateDevices=true
ProtectSystem=strict
ProtectHome=true
ProtectHostname=true
ProtectClock=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
NoNewPrivileges=true
SystemCallArchitectures=native
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=true
LockPersonality=true
RestrictRealtime=true
RestrictSUIDSGID=true
RemoveIPC=true
ReadWritePaths=/var /run /var/run /var/cache/monica-crm /var/lib/monica-crm /usr/share/webapps/monica-crm/storage /usr/share/webapps/monica-crm/bootstrap/cache
LimitNPROC=64
# You can turn on this setting if you've set pcre.jit=0 in your PHP config
#MemoryDenyWriteExecute=true
|