From 6f8a728b9dc7d118ff6ac963e65d55b592976551 Mon Sep 17 00:00:00 2001 From: Sean Channel Date: Tue, 13 Nov 2012 12:21:48 -0800 Subject: [PATCH] add systemd support files --- debian/salt-master.install | 1 + debian/salt-master.service | 10 ++++++++++ debian/salt-minion.install | 1 + debian/salt-minion.service | 10 ++++++++++ debian/salt-syndic.install | 1 + debian/salt-syndic.service | 10 ++++++++++ 6 files changed, 33 insertions(+) create mode 100644 debian/salt-master.service create mode 100644 debian/salt-minion.service create mode 100644 debian/salt-syndic.service diff --git a/debian/salt-master.install b/debian/salt-master.install index 91723e453b..59b34e1be4 100644 --- a/debian/salt-master.install +++ b/debian/salt-master.install @@ -4,3 +4,4 @@ scripts/salt-cp /usr/bin scripts/salt-run /usr/bin scripts/salt-key /usr/bin scripts/salt /usr/bin +debian/salt-master.service /lib/systemd/system diff --git a/debian/salt-master.service b/debian/salt-master.service new file mode 100644 index 0000000000..f72544c0da --- /dev/null +++ b/debian/salt-master.service @@ -0,0 +1,10 @@ +[Unit] +Description=The Salt Master Server +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/usr/bin/salt-master -d + +[Install] +WantedBy=multi-user.target diff --git a/debian/salt-minion.install b/debian/salt-minion.install index 12640ab88d..f653539bef 100644 --- a/debian/salt-minion.install +++ b/debian/salt-minion.install @@ -1,3 +1,4 @@ conf/minion.template /etc/salt scripts/salt-minion /usr/bin scripts/salt-call /usr/bin +debian/salt-master.service /lib/systemd/system diff --git a/debian/salt-minion.service b/debian/salt-minion.service new file mode 100644 index 0000000000..e305f1a47d --- /dev/null +++ b/debian/salt-minion.service @@ -0,0 +1,10 @@ +[Unit] +Description=The Salt Minion +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/usr/bin/salt-minion -d + +[Install] +WantedBy=multi-user.target diff --git a/debian/salt-syndic.install b/debian/salt-syndic.install index 424cd5cbf4..1bd2d4e146 100644 --- a/debian/salt-syndic.install +++ b/debian/salt-syndic.install @@ -1 +1,2 @@ scripts/salt-syndic /usr/bin +debian/salt-master.service /lib/systemd/system diff --git a/debian/salt-syndic.service b/debian/salt-syndic.service new file mode 100644 index 0000000000..8eae07615b --- /dev/null +++ b/debian/salt-syndic.service @@ -0,0 +1,10 @@ +[Unit] +Description=The Salt Master Server +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/usr/bin/salt-syndic -d + +[Install] +WantedBy=multi-user.target