mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 03:40:14 +02:00
Rename "convenience" systemd units
This commit is contained in:
10
lib/systemd/bridgehead-update@.service
Normal file
10
lib/systemd/bridgehead-update@.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Bridgehead (%i) Update Service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/srv/docker/bridgehead/
|
||||
ExecStart=/bin/bash -c "/srv/docker/bridgehead/update-bridgehead.sh %i"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
8
lib/systemd/bridgehead-update@.timer
Normal file
8
lib/systemd/bridgehead-update@.timer
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Nightly Updates of Bridgehead (%i)
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 03:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
15
lib/systemd/bridgehead@.service
Normal file
15
lib/systemd/bridgehead@.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Bridgehead (%i) Service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
WorkingDirectory=/srv/docker/bridgehead/%i
|
||||
|
||||
ExecStartPre=docker-compose --env-file ../site-config/%i.env down
|
||||
ExecStart=docker-compose --env-file ../site-config/%i.env up
|
||||
ExecStop=docker-compose --env-file ../site-config/%i.env down
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user