mirror of
https://github.com/YunoHost-Apps/kresus_ynh.git
synced 2024-09-03 19:36:10 +02:00
35 lines
1,017 B
Desktop File
35 lines
1,017 B
Desktop File
[Unit]
|
|
Description=__APP__
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=__APP__
|
|
Group=__APP__
|
|
WorkingDirectory=__FINALPATH__
|
|
Environment="PATH=__ENV_PATH__"
|
|
Environment=NODE_ENV=production
|
|
Environment=HOME=__NODEPATH__
|
|
ExecStart=__FINALPATH__/bin/kresus.js --config __FINALPATH__/config.ini
|
|
Restart=always
|
|
NoNewPrivileges=true
|
|
PrivateDevices=true
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
ProtectControlGroups=yes
|
|
ProtectKernelModules=yes
|
|
# to allow this systemd service to use sendmail.
|
|
# references:
|
|
# https://bugs.archlinux.org/task/57721
|
|
# https://linux.m2osw.com/snapwebsites-postfixpostdrop18189-warning-mailqueueenter-create-file-maildrop25937318189-permission
|
|
# Future wait for this ticket to be resolved: https://github.com/YunoHost/issues/issues/947
|
|
SupplementaryGroups=postdrop
|
|
ReadWritePaths=__FINALPATH__/config.ini __FINALPATH__/data/ /var/spool/postfix/maildrop/
|
|
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=__APP__
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|