diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/systemd/phinde.service | 18 | ||||
| -rw-r--r-- | data/systemd/phinde@.service | 17 |
2 files changed, 35 insertions, 0 deletions
diff --git a/data/systemd/phinde.service b/data/systemd/phinde.service new file mode 100644 index 0000000..18ee640 --- /dev/null +++ b/data/systemd/phinde.service @@ -0,0 +1,18 @@ +# This is a mostly empty service, but allows commands like stop, start, reload +# to propagate to all phinde@ service instances. + +[Unit] +Description=phinde search server +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/true +ExecReload=/bin/true +WorkingDirectory=/home/cweiske/www/search.cweiske.de/ +User=cweiske +Group=www-cweiske + +[Install] +WantedBy=multi-user.target diff --git a/data/systemd/phinde@.service b/data/systemd/phinde@.service new file mode 100644 index 0000000..2b3c611 --- /dev/null +++ b/data/systemd/phinde@.service @@ -0,0 +1,17 @@ +[Unit] +Description=phinde worker %i +PartOf=phinde.service +ReloadPropagatedFrom=phinde.service + +[Service] +Type=simple +WorkingDirectory=/home/cweiske/www/search.cweiske.de/ +User=cweiske +Group=www-cweiske +ExecStart=/home/cweiske/www/search.cweiske.de/bin/phinde-worker.php +TimeoutStopSec=5 +Restart=always +RestartSec=60 + +[Install] +WantedBy=phinde.service |
