]> git.proxmox.com Git - pve-manager.git/commitdiff
cleanup: rename bin/init.d to services
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Jun 2018 10:47:00 +0000 (12:47 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 20 Jun 2018 11:04:51 +0000 (13:04 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
34 files changed:
Makefile
bin/Makefile
bin/init.d/Makefile [deleted file]
bin/init.d/ceph-after-pve-cluster.conf [deleted file]
bin/init.d/ceph.service [deleted file]
bin/init.d/pve-daily-update.service [deleted file]
bin/init.d/pve-daily-update.timer [deleted file]
bin/init.d/pve-guests.service [deleted file]
bin/init.d/pve-storage.target [deleted file]
bin/init.d/pvebanner.service [deleted file]
bin/init.d/pvedaemon.service [deleted file]
bin/init.d/pvenetcommit [deleted file]
bin/init.d/pvenetcommit.service [deleted file]
bin/init.d/pveproxy.service [deleted file]
bin/init.d/pvesr.service [deleted file]
bin/init.d/pvesr.timer [deleted file]
bin/init.d/pvestatd.service [deleted file]
bin/init.d/spiceproxy.service [deleted file]
services/Makefile [new file with mode: 0644]
services/ceph-after-pve-cluster.conf [new file with mode: 0644]
services/ceph.service [new file with mode: 0644]
services/pve-daily-update.service [new file with mode: 0644]
services/pve-daily-update.timer [new file with mode: 0644]
services/pve-guests.service [new file with mode: 0644]
services/pve-storage.target [new file with mode: 0644]
services/pvebanner.service [new file with mode: 0644]
services/pvedaemon.service [new file with mode: 0644]
services/pvenetcommit [new file with mode: 0644]
services/pvenetcommit.service [new file with mode: 0644]
services/pveproxy.service [new file with mode: 0644]
services/pvesr.service [new file with mode: 0644]
services/pvesr.timer [new file with mode: 0644]
services/pvestatd.service [new file with mode: 0644]
services/spiceproxy.service [new file with mode: 0644]

index 0904db076c78938a5805fc948fcd594332345b1f..4b253c3696fdd6ba5f39f1e3186f5871e8fd049d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
 
 DESTDIR=
 
-SUBDIRS = aplinfo PVE bin www
+SUBDIRS = aplinfo PVE bin www services
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell git rev-parse HEAD)
index 8d14181046c880ac159d4105c09ea142e47f29b2..f599e2d193cea02c1b63674adacbf580fe4f6e5c 100644 (file)
@@ -6,7 +6,7 @@ include /usr/share/pve-doc-generator/pve-doc-generator.mk
 
 export PERLLIB=..
 
-SUBDIRS = init.d test
+SUBDIRS = test
 
 SERVICES = pvestatd pveproxy pvedaemon spiceproxy
 CLITOOLS = vzdump pvesubscription pveceph pveam pvesr pvenode
diff --git a/bin/init.d/Makefile b/bin/init.d/Makefile
deleted file mode 100644 (file)
index f0fc7f9..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-include ../../defines.mk
-
-all:
-
-SERVICES=                      \
-       pvebanner.service       \
-       pvenetcommit.service    \
-       pvestatd.service        \
-       pve-guests.service      \
-       pvedaemon.service       \
-       pveproxy.service        \
-       spiceproxy.service      \
-       pve-storage.target      \
-       pve-daily-update.service\
-       pve-daily-update.timer  \
-       pvesr.service           \
-       pvesr.timer
-
-.PHONY: install
-install: ${SERVICES}
-       install -d ${SERVICEDIR}
-       install -m 0644 ${SERVICES} ${SERVICEDIR}
-       install -d ${SERVICEDIR}/ceph-mon@.service.d
-       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-mon@.service.d
-       install -d ${SERVICEDIR}/ceph-mgr@.service.d
-       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-mgr@.service.d
-       install -d ${SERVICEDIR}/ceph-osd@.service.d
-       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-osd@.service.d
-       install -d ${SERVICEDIR}/ceph-disk@.service.d
-       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-disk@.service.d
-       install -d ${SERVICEDIR}/ceph-mds@.service.d
-       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-mds@.service.d
-       install -d ${DESTDIR}/usr/share/doc/${PACKAGE}/examples/
-       install -m 0644 ceph.service ${DESTDIR}/usr/share/doc/${PACKAGE}/examples/ceph.service
-
-.PHONY: clean
-clean:
-       rm -rf *~
diff --git a/bin/init.d/ceph-after-pve-cluster.conf b/bin/init.d/ceph-after-pve-cluster.conf
deleted file mode 100644 (file)
index f54bb1d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-[Unit]
-After=pve-cluster.service
diff --git a/bin/init.d/ceph.service b/bin/init.d/ceph.service
deleted file mode 100644 (file)
index 450856e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=PVE activate Ceph OSD disks
-After=pve-cluster.service
-Requires=pve-cluster.service
-
-[Service]
-ExecStart=/usr/sbin/ceph-disk --log-stdout activate-all
-Type=oneshot
-
-[Install]
-WantedBy=multi-user.target
diff --git a/bin/init.d/pve-daily-update.service b/bin/init.d/pve-daily-update.service
deleted file mode 100644 (file)
index 9c6d2ab..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=Daily PVE download activities
-After=network-online.target
-Wants=network-online.target
-Wants=pve-cluster.service
-After=pve-cluster.service
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/pveupdate
diff --git a/bin/init.d/pve-daily-update.timer b/bin/init.d/pve-daily-update.timer
deleted file mode 100644 (file)
index bf8d0b5..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=Daily PVE download activities
-
-[Timer]
-OnCalendar=*-*-* 2:00
-RandomizedDelaySec=4h
-Persistent=true
-
-[Install]
-WantedBy=timers.target
diff --git a/bin/init.d/pve-guests.service b/bin/init.d/pve-guests.service
deleted file mode 100644 (file)
index 15b8cd0..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-[Unit]
-Description=PVE guests
-ConditionPathExists=/usr/bin/pvesh
-RefuseManualStart=true
-RefuseManualStop=true
-Wants=pvestatd.service
-Wants=pveproxy.service
-Wants=spiceproxy.service
-Wants=pve-firewall.service
-Wants=lxc.service
-After=pveproxy.service
-After=pvestatd.service
-After=spiceproxy.service
-After=pve-firewall.service
-After=lxc.service
-After=pve-ha-crm.service pve-ha-lrm.service
-
-[Service]
-Environment="PVE_LOG_ID=pve-guests"
-ExecStart=/usr/bin/pvesh --nooutput create /nodes/localhost/startall
-ExecStop=-/usr/bin/vzdump -stop
-ExecStop=/usr/bin/pvesh --nooutput create /nodes/localhost/stopall
-Type=oneshot
-RemainAfterExit=yes
-TimeoutSec=infinity
-
-[Install]
-WantedBy=multi-user.target
-Alias=pve-manager.service
diff --git a/bin/init.d/pve-storage.target b/bin/init.d/pve-storage.target
deleted file mode 100644 (file)
index 84abd6b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=PVE Storage Target
-Wants=remote-fs.target
-After=remote-fs.target
-After=ceph.service
-After=ceph-mon.target
-After=ceph-osd.target
-After=ceph-mds.target
-After=ceph-mgr.target
-After=sheepdog.service
-After=glusterd.service
-After=open-iscsi.service
diff --git a/bin/init.d/pvebanner.service b/bin/init.d/pvebanner.service
deleted file mode 100644 (file)
index c7ffdc9..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=Proxmox VE Login Banner
-ConditionPathExists=/usr/bin/pvebanner
-DefaultDependencies=no
-After=local-fs.target
-Before=console-getty.service
-
-[Service]
-ExecStart=/usr/bin/pvebanner
-Type=oneshot
-RemainAfterExit=yes
-
-[Install]
-WantedBy=getty.target
diff --git a/bin/init.d/pvedaemon.service b/bin/init.d/pvedaemon.service
deleted file mode 100644 (file)
index 3addcd4..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=PVE API Daemon
-ConditionPathExists=/usr/bin/pvedaemon
-Wants=corosync.service pve-cluster.service
-After=corosync.service pve-cluster.service
-
-[Service]
-ExecStart=/usr/bin/pvedaemon start
-ExecStop=/usr/bin/pvedaemon stop
-ExecReload=/usr/bin/pvedaemon restart
-PIDFile=/var/run/pvedaemon.pid
-Type=forking
-
-[Install]
-WantedBy=multi-user.target
diff --git a/bin/init.d/pvenetcommit b/bin/init.d/pvenetcommit
deleted file mode 100644 (file)
index 0d8f060..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-### BEGIN INIT INFO
-# Provides:        pvenetcommit
-# Required-Start:  checkroot
-# Required-Stop:
-# Default-Start:   S
-# Default-Stop:
-# Short-Description: commits network changes
-### END INIT INFO
-
-set -e
-
-. /lib/lsb/init-functions
-
-PATH=/sbin:/bin
-
-IFFN=/etc/network/interfaces
-
-# we cant use perl here, because this skript runs before
-# we have /usr mounted
-
-case "$1" in
-    start)
-       # remove OVS config
-       rm -f /etc/openvswitch/conf.db
-
-       if test -f "${IFFN}.new"; then
-           echo "committing new network configuration";
-           if ! mv "${IFFN}.new" $IFFN; then
-               echo "unable to commit changes to '${IFFN}' - $!\n";
-           fi
-       fi
-       ;;
-    stop|restart|force-reload)
-       exit 0
-       ;;
-    *)
-       echo "Usage: /etc/init.d/pvenetcommit {start}"
-       exit 0
-       ;;
-esac
-
-exit 0
diff --git a/bin/init.d/pvenetcommit.service b/bin/init.d/pvenetcommit.service
deleted file mode 100644 (file)
index 7be05f9..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-[Unit]
-Description=Commit Proxmox VE network changes
-DefaultDependencies=no
-After=local-fs.target
-Before=sysinit.target
-
-[Service]
-ExecStartPre=-/bin/rm -f /etc/openvswitch/conf.db
-ExecStartPre=-/bin/mv /etc/network/interfaces.new /etc/network/interfaces
-ExecStart=/bin/true
-Type=oneshot
-RemainAfterExit=yes
-
-
-[Install]
-WantedBy=sysinit.target
-
diff --git a/bin/init.d/pveproxy.service b/bin/init.d/pveproxy.service
deleted file mode 100644 (file)
index 9c3c832..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-[Unit]
-Description=PVE API Proxy Server
-ConditionPathExists=/usr/bin/pveproxy
-Wants=pve-cluster.service
-Wants=pvedaemon.service
-Wants=ssh.service
-Wants=pve-storage.target
-After=pve-storage.target
-After=pve-cluster.service
-After=pvedaemon.service
-After=ssh.service
-
-[Service]
-ExecStart=/usr/bin/pveproxy start
-ExecStop=/usr/bin/pveproxy stop
-ExecReload=/usr/bin/pveproxy restart
-PIDFile=/var/run/pveproxy/pveproxy.pid
-Type=forking
-
-[Install]
-WantedBy=multi-user.target
diff --git a/bin/init.d/pvesr.service b/bin/init.d/pvesr.service
deleted file mode 100644 (file)
index e0c082a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-[Unit]
-Description=Proxmox VE replication runner
-ConditionPathExists=/usr/bin/pvesr
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/pvesr run --mail 1
diff --git a/bin/init.d/pvesr.timer b/bin/init.d/pvesr.timer
deleted file mode 100644 (file)
index 01d7b9c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=Proxmox VE replication runner
-
-[Timer]
-AccuracySec=1
-RemainAfterElapse=no
-
-[Timer]
-OnCalendar=minutely
-
-[Install]
-WantedBy=timers.target
\ No newline at end of file
diff --git a/bin/init.d/pvestatd.service b/bin/init.d/pvestatd.service
deleted file mode 100644 (file)
index 4973e13..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=PVE Status Daemon
-ConditionPathExists=/usr/bin/pvestatd
-Wants=pve-cluster.service
-After=pve-cluster.service
-
-[Service]
-ExecStart=/usr/bin/pvestatd start
-ExecStop=/usr/bin/pvestatd stop
-ExecReload=/usr/bin/pvestatd restart
-PIDFile=/var/run/pvestatd.pid
-Type=forking
-
-[Install]
-WantedBy=multi-user.target
diff --git a/bin/init.d/spiceproxy.service b/bin/init.d/spiceproxy.service
deleted file mode 100644 (file)
index bb4c311..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=PVE SPICE Proxy Server
-ConditionPathExists=/usr/bin/spiceproxy
-Wants=pveproxy.service
-After=pveproxy.service
-
-[Service]
-ExecStart=/usr/bin/spiceproxy start
-ExecStop=/usr/bin/spiceproxy stop
-ExecReload=/usr/bin/spiceproxy restart
-PIDFile=/var/run/pveproxy/spiceproxy.pid
-Type=forking
-
-[Install]
-WantedBy=multi-user.target
diff --git a/services/Makefile b/services/Makefile
new file mode 100644 (file)
index 0000000..a68126e
--- /dev/null
@@ -0,0 +1,38 @@
+include ../defines.mk
+
+all:
+
+SERVICES=                      \
+       pvebanner.service       \
+       pvenetcommit.service    \
+       pvestatd.service        \
+       pve-guests.service      \
+       pvedaemon.service       \
+       pveproxy.service        \
+       spiceproxy.service      \
+       pve-storage.target      \
+       pve-daily-update.service\
+       pve-daily-update.timer  \
+       pvesr.service           \
+       pvesr.timer
+
+.PHONY: install
+install: ${SERVICES}
+       install -d ${SERVICEDIR}
+       install -m 0644 ${SERVICES} ${SERVICEDIR}
+       install -d ${SERVICEDIR}/ceph-mon@.service.d
+       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-mon@.service.d
+       install -d ${SERVICEDIR}/ceph-mgr@.service.d
+       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-mgr@.service.d
+       install -d ${SERVICEDIR}/ceph-osd@.service.d
+       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-osd@.service.d
+       install -d ${SERVICEDIR}/ceph-disk@.service.d
+       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-disk@.service.d
+       install -d ${SERVICEDIR}/ceph-mds@.service.d
+       install -m 0644 ceph-after-pve-cluster.conf ${SERVICEDIR}/ceph-mds@.service.d
+       install -d ${DESTDIR}/usr/share/doc/${PACKAGE}/examples/
+       install -m 0644 ceph.service ${DESTDIR}/usr/share/doc/${PACKAGE}/examples/ceph.service
+
+.PHONY: clean
+clean:
+       rm -rf *~
diff --git a/services/ceph-after-pve-cluster.conf b/services/ceph-after-pve-cluster.conf
new file mode 100644 (file)
index 0000000..f54bb1d
--- /dev/null
@@ -0,0 +1,2 @@
+[Unit]
+After=pve-cluster.service
diff --git a/services/ceph.service b/services/ceph.service
new file mode 100644 (file)
index 0000000..450856e
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=PVE activate Ceph OSD disks
+After=pve-cluster.service
+Requires=pve-cluster.service
+
+[Service]
+ExecStart=/usr/sbin/ceph-disk --log-stdout activate-all
+Type=oneshot
+
+[Install]
+WantedBy=multi-user.target
diff --git a/services/pve-daily-update.service b/services/pve-daily-update.service
new file mode 100644 (file)
index 0000000..9c6d2ab
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Daily PVE download activities
+After=network-online.target
+Wants=network-online.target
+Wants=pve-cluster.service
+After=pve-cluster.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/pveupdate
diff --git a/services/pve-daily-update.timer b/services/pve-daily-update.timer
new file mode 100644 (file)
index 0000000..bf8d0b5
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Daily PVE download activities
+
+[Timer]
+OnCalendar=*-*-* 2:00
+RandomizedDelaySec=4h
+Persistent=true
+
+[Install]
+WantedBy=timers.target
diff --git a/services/pve-guests.service b/services/pve-guests.service
new file mode 100644 (file)
index 0000000..15b8cd0
--- /dev/null
@@ -0,0 +1,29 @@
+[Unit]
+Description=PVE guests
+ConditionPathExists=/usr/bin/pvesh
+RefuseManualStart=true
+RefuseManualStop=true
+Wants=pvestatd.service
+Wants=pveproxy.service
+Wants=spiceproxy.service
+Wants=pve-firewall.service
+Wants=lxc.service
+After=pveproxy.service
+After=pvestatd.service
+After=spiceproxy.service
+After=pve-firewall.service
+After=lxc.service
+After=pve-ha-crm.service pve-ha-lrm.service
+
+[Service]
+Environment="PVE_LOG_ID=pve-guests"
+ExecStart=/usr/bin/pvesh --nooutput create /nodes/localhost/startall
+ExecStop=-/usr/bin/vzdump -stop
+ExecStop=/usr/bin/pvesh --nooutput create /nodes/localhost/stopall
+Type=oneshot
+RemainAfterExit=yes
+TimeoutSec=infinity
+
+[Install]
+WantedBy=multi-user.target
+Alias=pve-manager.service
diff --git a/services/pve-storage.target b/services/pve-storage.target
new file mode 100644 (file)
index 0000000..84abd6b
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=PVE Storage Target
+Wants=remote-fs.target
+After=remote-fs.target
+After=ceph.service
+After=ceph-mon.target
+After=ceph-osd.target
+After=ceph-mds.target
+After=ceph-mgr.target
+After=sheepdog.service
+After=glusterd.service
+After=open-iscsi.service
diff --git a/services/pvebanner.service b/services/pvebanner.service
new file mode 100644 (file)
index 0000000..c7ffdc9
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=Proxmox VE Login Banner
+ConditionPathExists=/usr/bin/pvebanner
+DefaultDependencies=no
+After=local-fs.target
+Before=console-getty.service
+
+[Service]
+ExecStart=/usr/bin/pvebanner
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=getty.target
diff --git a/services/pvedaemon.service b/services/pvedaemon.service
new file mode 100644 (file)
index 0000000..3addcd4
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=PVE API Daemon
+ConditionPathExists=/usr/bin/pvedaemon
+Wants=corosync.service pve-cluster.service
+After=corosync.service pve-cluster.service
+
+[Service]
+ExecStart=/usr/bin/pvedaemon start
+ExecStop=/usr/bin/pvedaemon stop
+ExecReload=/usr/bin/pvedaemon restart
+PIDFile=/var/run/pvedaemon.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
diff --git a/services/pvenetcommit b/services/pvenetcommit
new file mode 100644 (file)
index 0000000..0d8f060
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides:        pvenetcommit
+# Required-Start:  checkroot
+# Required-Stop:
+# Default-Start:   S
+# Default-Stop:
+# Short-Description: commits network changes
+### END INIT INFO
+
+set -e
+
+. /lib/lsb/init-functions
+
+PATH=/sbin:/bin
+
+IFFN=/etc/network/interfaces
+
+# we cant use perl here, because this skript runs before
+# we have /usr mounted
+
+case "$1" in
+    start)
+       # remove OVS config
+       rm -f /etc/openvswitch/conf.db
+
+       if test -f "${IFFN}.new"; then
+           echo "committing new network configuration";
+           if ! mv "${IFFN}.new" $IFFN; then
+               echo "unable to commit changes to '${IFFN}' - $!\n";
+           fi
+       fi
+       ;;
+    stop|restart|force-reload)
+       exit 0
+       ;;
+    *)
+       echo "Usage: /etc/init.d/pvenetcommit {start}"
+       exit 0
+       ;;
+esac
+
+exit 0
diff --git a/services/pvenetcommit.service b/services/pvenetcommit.service
new file mode 100644 (file)
index 0000000..7be05f9
--- /dev/null
@@ -0,0 +1,17 @@
+[Unit]
+Description=Commit Proxmox VE network changes
+DefaultDependencies=no
+After=local-fs.target
+Before=sysinit.target
+
+[Service]
+ExecStartPre=-/bin/rm -f /etc/openvswitch/conf.db
+ExecStartPre=-/bin/mv /etc/network/interfaces.new /etc/network/interfaces
+ExecStart=/bin/true
+Type=oneshot
+RemainAfterExit=yes
+
+
+[Install]
+WantedBy=sysinit.target
+
diff --git a/services/pveproxy.service b/services/pveproxy.service
new file mode 100644 (file)
index 0000000..9c3c832
--- /dev/null
@@ -0,0 +1,21 @@
+[Unit]
+Description=PVE API Proxy Server
+ConditionPathExists=/usr/bin/pveproxy
+Wants=pve-cluster.service
+Wants=pvedaemon.service
+Wants=ssh.service
+Wants=pve-storage.target
+After=pve-storage.target
+After=pve-cluster.service
+After=pvedaemon.service
+After=ssh.service
+
+[Service]
+ExecStart=/usr/bin/pveproxy start
+ExecStop=/usr/bin/pveproxy stop
+ExecReload=/usr/bin/pveproxy restart
+PIDFile=/var/run/pveproxy/pveproxy.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
diff --git a/services/pvesr.service b/services/pvesr.service
new file mode 100644 (file)
index 0000000..e0c082a
--- /dev/null
@@ -0,0 +1,7 @@
+[Unit]
+Description=Proxmox VE replication runner
+ConditionPathExists=/usr/bin/pvesr
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/pvesr run --mail 1
diff --git a/services/pvesr.timer b/services/pvesr.timer
new file mode 100644 (file)
index 0000000..01d7b9c
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Proxmox VE replication runner
+
+[Timer]
+AccuracySec=1
+RemainAfterElapse=no
+
+[Timer]
+OnCalendar=minutely
+
+[Install]
+WantedBy=timers.target
\ No newline at end of file
diff --git a/services/pvestatd.service b/services/pvestatd.service
new file mode 100644 (file)
index 0000000..4973e13
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=PVE Status Daemon
+ConditionPathExists=/usr/bin/pvestatd
+Wants=pve-cluster.service
+After=pve-cluster.service
+
+[Service]
+ExecStart=/usr/bin/pvestatd start
+ExecStop=/usr/bin/pvestatd stop
+ExecReload=/usr/bin/pvestatd restart
+PIDFile=/var/run/pvestatd.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
diff --git a/services/spiceproxy.service b/services/spiceproxy.service
new file mode 100644 (file)
index 0000000..bb4c311
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=PVE SPICE Proxy Server
+ConditionPathExists=/usr/bin/spiceproxy
+Wants=pveproxy.service
+After=pveproxy.service
+
+[Service]
+ExecStart=/usr/bin/spiceproxy start
+ExecStop=/usr/bin/spiceproxy stop
+ExecReload=/usr/bin/spiceproxy restart
+PIDFile=/var/run/pveproxy/spiceproxy.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target