diff --git a/debian/systemd/koha-common.service b/debian/systemd/koha-common.service new file mode 100644 index 0000000000..8f49282b95 --- /dev/null +++ b/debian/systemd/koha-common.service @@ -0,0 +1,14 @@ +[Unit] +Description=Koha ILS - All instances (compat) +Documentation=man:koha-common(8) +BindsTo=koha.target +After=koha.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/systemctl start koha.target +ExecStop=/bin/systemctl stop koha.target + +[Install] +WantedBy=multi-user.target diff --git a/debian/systemd/koha@.target b/debian/systemd/koha@.target index 4fc988e0d6..3348d5818a 100644 --- a/debian/systemd/koha@.target +++ b/debian/systemd/koha@.target @@ -1,6 +1,7 @@ [Unit] Description=Koha ILS instance %i After=network.target memcached.service mysql.service +PartOf=koha.target StopWhenUnneeded=yes [Install]