2023-08-21 10:05:52 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Friendica daemon
|
|
|
|
After=network.target mariadb.service
|
|
|
|
Requires=network.target remote-fs.target nss-lookup.target
|
|
|
|
|
|
|
|
[Service]
|
2023-08-21 17:47:32 +02:00
|
|
|
Type=simple
|
2023-08-21 10:05:52 +02:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
|
|
|
WorkingDirectory=__INSTALL_DIR__/
|
2023-08-21 17:48:24 +02:00
|
|
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
|
|
|
StandardError=inherit
|
2023-08-21 10:05:52 +02:00
|
|
|
ExecStart=/usr/bin/php__PHPVERSION__ __INSTALL_DIR__/bin/daemon.php start
|
|
|
|
ExecStop=/usr/bin/php__PHPVERSION__ __INSTALL_DIR__/bin/daemon.php stop
|
|
|
|
PIDFile=friendica/daemon.pid
|
|
|
|
PrivateTmp=true
|
|
|
|
InaccessibleDirectories=/home /root /boot /opt /mnt /media
|
|
|
|
ReadOnlyDirectories=/etc /usr
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|