14 lines
258 B
SYSTEMD
14 lines
258 B
SYSTEMD
|
[Unit]
|
||
|
Description=A tiny web server launching local commands upon specific URLs being called
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
Restart=always
|
||
|
RestartSec=1
|
||
|
User=root
|
||
|
ExecStart=/root/urltocmd/urltocmd
|
||
|
WorkingDirectory=/root/urltocmd
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=mult-user.target
|