1[Unit] 2Description=High performance HTTP 1.1 webserver written in Erlang 3After=network.target remote-fs.target 4 5[Service] 6Type=forking 7GuessMainPID=no 8 9Environment="YAWS_CONF=--conf %etcdir%/yaws/yaws.conf" 10#Environment="YAWS_ID=--id myserverid" 11 12ExecStart=%bindir%/yaws --daemon --heart $YAWS_CONF $YAWS_ID 13ExecStartPost=%bindir%/yaws $YAWS_ID --wait-started=10 14 15ExecReload=%bindir%/yaws $YAWS_ID --hup 16 17ExecStop=%bindir%/yaws $YAWS_ID --stop 18ExecStopPost=%bindir%/yaws $YAWS_ID --wait-stopped=10 19 20Restart=on-failure 21RestartSec=5 22 23[Install] 24WantedBy=multi-user.target 25