refactor(airtime_analyzer): rename to libretime-analyzer and make entrypoint pythonic

This commit is contained in:
Lucas Bickel 2020-12-30 13:17:50 +00:00 committed by GitHub
parent b6d22c94a1
commit e21abf1bf1
15 changed files with 155 additions and 170 deletions

View file

@ -2,7 +2,7 @@
Description=LibreTime Media Analyzer Service
[Service]
ExecStart=/usr/bin/airtime_analyzer
ExecStart=/usr/bin/libretime-analyzer
User=libretime-analyzer
Group=libretime-analyzer
Restart=always

View file

@ -1,17 +1,17 @@
#!/bin/bash
### BEGIN INIT INFO
# Provides: airtime_analyzer
# Provides: libretime-analyzer
# Required-Start: $local_fs $remote_fs $network $syslog $all
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Manage airtime_analyzer daemon
# Short-Description: Manage libretime-analyzer daemon
### END INIT INFO
USERID=www-data
GROUPID=www-data
NAME=airtime_analyzer
NAME=libretime-analyzer
DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/$NAME.pid

View file

@ -15,10 +15,10 @@ env LANG='en_US.UTF-8'
env LC_ALL='en_US.UTF-8'
#script
# airtime_analyzer
# libretime-analyzer
#end script
exec airtime_analyzer
exec libretime-analyzer