From f14fca8f1eeebd7361269001417e69899f9999c7 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Fri, 17 Feb 2012 11:12:18 -0500 Subject: [PATCH] systemd scripts for boot cd --- systemd/pl_boot.service | 9 +++++++++ systemd/pl_boot.target | 18 ++++++++++++++++++ systemd/pl_boot.target.wants/pl_boot.service | 1 + systemd/pl_sysinit.service | 10 ++++++++++ systemd/pl_sysinit.target | 15 +++++++++++++++ .../pl_sysinit.target.wants/pl_sysinit.service | 1 + 6 files changed, 54 insertions(+) create mode 100644 systemd/pl_boot.service create mode 100644 systemd/pl_boot.target create mode 120000 systemd/pl_boot.target.wants/pl_boot.service create mode 100644 systemd/pl_sysinit.service create mode 100644 systemd/pl_sysinit.target create mode 120000 systemd/pl_sysinit.target.wants/pl_sysinit.service diff --git a/systemd/pl_boot.service b/systemd/pl_boot.service new file mode 100644 index 0000000..4010cfd --- /dev/null +++ b/systemd/pl_boot.service @@ -0,0 +1,9 @@ +[Unit] +Description=pl_boot service +After=pl_sysinit.target + +[Service] +ExecStart=/etc/init.d/pl_boot + +[Install] +WantedBy=pl_boot.target diff --git a/systemd/pl_boot.target b/systemd/pl_boot.target new file mode 100644 index 0000000..293b759 --- /dev/null +++ b/systemd/pl_boot.target @@ -0,0 +1,18 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# See systemd.special(7) for details + +[Unit] +Description=pl_boot +#Requires=basic.target +#Conflicts=rescue.service rescue.target +#After=basic.target rescue.service rescue.target +#AllowIsolate=yes + +#[Install] +#Alias=default.target diff --git a/systemd/pl_boot.target.wants/pl_boot.service b/systemd/pl_boot.target.wants/pl_boot.service new file mode 120000 index 0000000..814c77e --- /dev/null +++ b/systemd/pl_boot.target.wants/pl_boot.service @@ -0,0 +1 @@ +/lib/systemd/system/pl_boot.service \ No newline at end of file diff --git a/systemd/pl_sysinit.service b/systemd/pl_sysinit.service new file mode 100644 index 0000000..36b65ac --- /dev/null +++ b/systemd/pl_sysinit.service @@ -0,0 +1,10 @@ +[Unit] +Description=pl_sysinit service +Before=pl_boot.target +#After=syslog.target ntpdate.service + +[Service] +ExecStart=/etc/init.d/pl_sysinit + +[Install] +WantedBy=pl_sysinit.target diff --git a/systemd/pl_sysinit.target b/systemd/pl_sysinit.target new file mode 100644 index 0000000..4212402 --- /dev/null +++ b/systemd/pl_sysinit.target @@ -0,0 +1,15 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# See systemd.special(7) for details + +[Unit] +Description=PlanetLab System Initialization +Conflicts=emergency.service emergency.target +Wants=local-fs.target swap.target +After=local-fs.target swap.target emergency.service emergency.target +RefuseManualStart=yes diff --git a/systemd/pl_sysinit.target.wants/pl_sysinit.service b/systemd/pl_sysinit.target.wants/pl_sysinit.service new file mode 120000 index 0000000..3c32a97 --- /dev/null +++ b/systemd/pl_sysinit.target.wants/pl_sysinit.service @@ -0,0 +1 @@ +/lib/systemd/system/pl_sysinit.service \ No newline at end of file -- 2.43.0