yaws/yaws@.service
2015-06-19 08:48:28 +02:00

17 lines
478 B
Desktop File

[Unit]
Description=The Yaws Web Server instance
After=network.target
[Service]
User=root
Type=notify
Environment="HOME=/var/lib/yaws"
# We need to use --daemon and Type=forking, otherwise it would spawn the
# Erlang shell that terminates upon attempt to read from /dev/null input :(
Type=forking
ExecStart=/usr/bin/yaws --daemon --id %i --conf /etc/yaws/%i.conf
ExecReload=/usr/bin/yaws --hup --id %i
ExecStop=/usr/bin/yaws --stop --id %i
[Install]
WantedBy=multi-user.target