feat: add systemd libretime.target
- add wanted by - instantly start services in vagrant
This commit is contained in:
parent
a9c2271559
commit
510e978952
|
@ -83,6 +83,8 @@ Vagrant.configure('2') do |config|
|
||||||
|
|
||||||
libretime-api migrate
|
libretime-api migrate
|
||||||
libretime-api set_icecast_passwords --from-icecast-config
|
libretime-api set_icecast_passwords --from-icecast-config
|
||||||
|
|
||||||
|
systemctl start libretime.target
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|
||||||
config.vm.provision 'install', type: 'shell', inline: $script
|
config.vm.provision 'install', type: 'shell', inline: $script
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LibreTime Media Analyzer Service
|
Description=LibreTime Media Analyzer Service
|
||||||
|
PartOf=libretime.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/analyzer.log
|
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/analyzer.log
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LibreTime API Service
|
Description=LibreTime API Service
|
||||||
|
PartOf=libretime.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
|
|
11
install
11
install
|
@ -687,6 +687,9 @@ fi
|
||||||
########################################################################################
|
########################################################################################
|
||||||
|
|
||||||
section "Services"
|
section "Services"
|
||||||
|
|
||||||
|
install_service "libretime.target" "$SCRIPT_DIR/installer/systemd/libretime.target"
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
if apache2ctl configtest; then
|
if apache2ctl configtest; then
|
||||||
|
@ -716,10 +719,16 @@ ${cyan}\
|
||||||
$ sudo -u $LIBRETIME_USER libretime-api migrate
|
$ sudo -u $LIBRETIME_USER libretime-api migrate
|
||||||
|
|
||||||
${yellow}\
|
${yellow}\
|
||||||
Finally, run the following command to configure the default icecast passwords in the database:
|
Run the following command to configure the default icecast passwords in the database:
|
||||||
|
|
||||||
${cyan}\
|
${cyan}\
|
||||||
$ sudo libretime-api set_icecast_passwords --from-icecast-config
|
$ sudo libretime-api set_icecast_passwords --from-icecast-config
|
||||||
|
|
||||||
|
${yellow}\
|
||||||
|
Finally, start LibreTime using the following command:
|
||||||
|
|
||||||
|
${cyan}\
|
||||||
|
$ sudo systemctl start libretime.target
|
||||||
|
|
||||||
${reset}"
|
${reset}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=LibreTime Services
|
||||||
|
Wants=libretime-analyzer.service
|
||||||
|
Wants=libretime-api.service
|
||||||
|
Wants=libretime-celery.service
|
||||||
|
Wants=libretime-liquidsoap.service
|
||||||
|
Wants=libretime-playout.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LibreTime Liquidsoap Service
|
Description=LibreTime Liquidsoap Service
|
||||||
|
PartOf=libretime.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/liquidsoap.log
|
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/liquidsoap.log
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LibreTime Playout Service
|
Description=LibreTime Playout Service
|
||||||
|
PartOf=libretime.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/playout.log
|
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/playout.log
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LibreTime Worker Service
|
Description=LibreTime Worker Service
|
||||||
|
PartOf=libretime.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/worker.log
|
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/worker.log
|
||||||
|
|
Loading…
Reference in New Issue