1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00
friendica_ynh/conf/systemd.service

22 lines
589 B
SYSTEMD
Raw Normal View History

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__/
StandardOutput=null
StandardError=syslog
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