2018-09-21 19:05:55 +02:00
|
|
|
[Unit]
|
2018-10-08 00:54:29 +02:00
|
|
|
Description=Piston API
|
2018-09-21 19:05:55 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=root
|
|
|
|
Environment=PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
|
|
|
WorkingDirectory=/root/piston/api
|
2018-10-08 00:54:29 +02:00
|
|
|
ExecStart=/root/piston/api/start %i
|
2018-09-21 19:05:55 +02:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|