/lib/systemd/system/kopano-server.service is in kopano-server 8.5.5-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | [Unit]
Description=Kopano Server
After=network.target
After=local-fs.target
After=remote-fs.target
After=mysql.service
Documentation=man:kopano-server(8)
[Service]
Type=simple
PermissionsStartOnly=true
# The RuntimeDirectory things isn't working now, make the directory by hand.
#User=kopano
#RuntimeDirectory=kopano
ExecStartPre=/bin/mkdir -p /var/run/kopano
ExecStartPre=/bin/chown kopano /var/run/kopano
ExecStartPre=/bin/chown kopano /var/lib/kopano
ExecStartPre=/bin/chown kopano /var/lib/kopano/attachments
ExecStart=/usr/sbin/kopano-server -F -c /etc/kopano/server.cfg
KillMode=process
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
|