Browse Source

systemd watcher/path Definition

master
Christian Aust 1 year ago
parent
commit
4e0567eaf8
  1. 2
      .gitignore
  2. 6
      dc-watcher@.path
  3. 10
      dc-watcher@.service

2
.gitignore

@ -0,0 +1,2 @@
run/

6
dc-watcher@.path

@ -0,0 +1,6 @@
[Path]
Unit=dc-watcher@%i.service
PathModified=/opt/dockerfiles/run/%i
[Install]
WantedBy=multi-user.target

10
dc-watcher@.service

@ -0,0 +1,10 @@
[Unit]
Description=%i srv restarter
After=docker.service
[Service]
Type=oneshot
ExecStart=/bin/systemctl restart dc@%i.service
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save