[Unit] Description=Friendica daemon After=network.target mariadb.service Requires=network.target remote-fs.target nss-lookup.target [Service] Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit 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