2018-04-14 22:02:50 +02:00
|
|
|
[Unit]
|
|
|
|
Description=__APP__
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2019-11-24 15:12:27 +01:00
|
|
|
#ExecStartPre=__NODEJS__
|
2018-04-14 22:02:50 +02:00
|
|
|
WorkingDirectory=__FINALPATH__
|
|
|
|
Environment="PATH=__ENV_PATH__"
|
|
|
|
Environment=NODE_ENV=production
|
|
|
|
Environment=HOME=__NODEPATH__
|
|
|
|
ExecStart=__FINALPATH__/bin/kresus.js --config __FINALPATH__/config.ini
|
|
|
|
Restart=always
|
2018-09-06 13:47:45 +02:00
|
|
|
NoNewPrivileges=true
|
|
|
|
PrivateDevices=true
|
|
|
|
PrivateTmp=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectSystem=strict
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ReadWritePaths=__FINALPATH__/config.ini __FINALPATH__/data/
|
2018-04-14 22:02:50 +02:00
|
|
|
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=__APP__
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|