File: //lib/systemd/system/pinokio.service
[Unit]
Description=Pinokio Service
After=network.target
[Service]
Type=simple
User=karateka
Group=karateka
# Ensure the environment variables are set (if necessary)
#Environment=NODE_ENV=production
Environment="DISPLAY=:99"
WorkingDirectory=/home/karateka
ExecStart=/usr/bin/pinokio
Restart=on-failure
# Use the private /tmp and /var/tmp, which is a new namespace of /tmp and /var/tmp for the process
PrivateTmp=true
# The number of seconds to wait for the service to start before systemd gives up
TimeoutStartSec=30
# The number of seconds to wait for the service to stop before systemd gives up
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target