JiriSko / amixer-webui

Web application for control ALSA volume
MIT License
53 stars 21 forks source link

Missing a systemD start script #16

Closed substring closed 3 years ago

substring commented 5 years ago

Hi !

Nice app you made! Nice layout even on a smartphone!

The Makefile will crash if /etc/init.d doesn't exist (old sysVinit). Most distros now use systemd now for service startup. I'll try to make a PR asap if you're interested.

JiriSko commented 5 years ago

Hi, thanks!

I'm definitely interested. :-)

gearhead commented 4 years ago

How about this:

[Unit]
Description=Amixer-WebUI Service
After=audio.target

[Service]
WorkingDirectory=/usr/share/amixer-webui
ExecStart=/usr/bin/python /usr/share/amixer-webui/alsamixer_webui.py
ExecReload=/usr/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20

[Install]
WantedBy=multi-user.target