piston/var/piston@.service

14 lines
262 B
Desktop File

[Unit]
Description=Piston API
[Service]
Type=simple
User=root
Environment=PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
WorkingDirectory=/root/piston/api
ExecStart=/root/piston/api/start %i
Restart=on-failure
[Install]
WantedBy=multi-user.target