summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd-distro/data/etc
diff options
context:
space:
mode:
authorManuel Schneider2014-11-26 12:21:45 +0100
committerManuel Schneider2014-11-26 12:21:45 +0100
commit63fa049f2332c1b7a19d61a4a04f537142c8a787 (patch)
tree36295b8e35844e2491f5b3d5356d3617d45f7c10 /remote/modules/systemd-distro/data/etc
parent[PVS2] Remove unexpected 'fi' (diff)
parent[rfs-stage31] Write IP information to /opt/openslx/config even if config.tgz ... (diff)
downloadtm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.tar.gz
tm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.tar.xz
tm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/systemd-distro/data/etc')
-rw-r--r--remote/modules/systemd-distro/data/etc/systemd/system.conf49
-rw-r--r--remote/modules/systemd-distro/data/etc/systemd/system/network-interface@.service9
-rw-r--r--remote/modules/systemd-distro/data/etc/systemd/system/systemd-halt.service18
-rw-r--r--remote/modules/systemd-distro/data/etc/systemd/system/systemd-poweroff.service18
-rw-r--r--remote/modules/systemd-distro/data/etc/systemd/system/systemd-reboot.service18
5 files changed, 112 insertions, 0 deletions
diff --git a/remote/modules/systemd-distro/data/etc/systemd/system.conf b/remote/modules/systemd-distro/data/etc/systemd/system.conf
new file mode 100644
index 00000000..583f1b7d
--- /dev/null
+++ b/remote/modules/systemd-distro/data/etc/systemd/system.conf
@@ -0,0 +1,49 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+# See systemd-system.conf(5) for details
+
+[Manager]
+#LogLevel=info
+#LogTarget=journal-or-kmsg
+#LogColor=yes
+#LogLocation=no
+#DumpCore=yes
+#CrashShell=no
+#ShowStatus=yes
+#CrashChVT=1
+#CPUAffinity=1 2
+#JoinControllers=cpu,cpuacct net_cls,net_prio
+#RuntimeWatchdogSec=0
+#ShutdownWatchdogSec=10min
+#CapabilityBoundingSet=
+#SystemCallArchitectures=
+#TimerSlackNSec=
+#DefaultStandardOutput=journal
+#DefaultStandardError=inherit
+#DefaultTimeoutStartSec=90s
+#DefaultTimeoutStopSec=90s
+#DefaultRestartSec=100ms
+#DefaultStartLimitInterval=10s
+#DefaultStartLimitBurst=5
+DefaultEnvironment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/openslx/sbin:/opt/openslx/bin"
+#DefaultLimitCPU=
+#DefaultLimitFSIZE=
+#DefaultLimitDATA=
+#DefaultLimitSTACK=
+#DefaultLimitCORE=
+#DefaultLimitRSS=
+#DefaultLimitNOFILE=
+#DefaultLimitAS=
+#DefaultLimitNPROC=
+#DefaultLimitMEMLOCK=
+#DefaultLimitLOCKS=
+#DefaultLimitSIGPENDING=
+#DefaultLimitMSGQUEUE=
+#DefaultLimitNICE=
+#DefaultLimitRTPRIO=
+#DefaultLimitRTTIME=
diff --git a/remote/modules/systemd-distro/data/etc/systemd/system/network-interface@.service b/remote/modules/systemd-distro/data/etc/systemd/system/network-interface@.service
new file mode 100644
index 00000000..ea9cc56e
--- /dev/null
+++ b/remote/modules/systemd-distro/data/etc/systemd/system/network-interface@.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Brings interface %i up
+Wants=dhcpc@%i.service
+Before=dhcpc@%i.service
+
+[Service]
+Type=simple
+ExecStart=/opt/openslx/sbin/ip link set dev %I up
+
diff --git a/remote/modules/systemd-distro/data/etc/systemd/system/systemd-halt.service b/remote/modules/systemd-distro/data/etc/systemd/system/systemd-halt.service
new file mode 100644
index 00000000..95b4f284
--- /dev/null
+++ b/remote/modules/systemd-distro/data/etc/systemd/system/systemd-halt.service
@@ -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 Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Halt
+Documentation=man:systemd-halt.service(8)
+DefaultDependencies=no
+Requires=shutdown.target final.target
+After=shutdown.target final.target
+
+[Service]
+Type=oneshot
+ExecStartPre=-/bin/bash -c /opt/openslx/scripts/systemd-shutdown_prescript
+ExecStart=/usr/bin/systemctl --force halt
diff --git a/remote/modules/systemd-distro/data/etc/systemd/system/systemd-poweroff.service b/remote/modules/systemd-distro/data/etc/systemd/system/systemd-poweroff.service
new file mode 100644
index 00000000..8b96980e
--- /dev/null
+++ b/remote/modules/systemd-distro/data/etc/systemd/system/systemd-poweroff.service
@@ -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 Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Power-Off
+Documentation=man:systemd-halt.service(8)
+DefaultDependencies=no
+Requires=shutdown.target final.target
+After=shutdown.target final.target
+
+[Service]
+Type=oneshot
+ExecStartPre=-/bin/bash -c /opt/openslx/scripts/systemd-shutdown_prescript
+ExecStart=/usr/bin/systemctl --force poweroff
diff --git a/remote/modules/systemd-distro/data/etc/systemd/system/systemd-reboot.service b/remote/modules/systemd-distro/data/etc/systemd/system/systemd-reboot.service
new file mode 100644
index 00000000..be4d608c
--- /dev/null
+++ b/remote/modules/systemd-distro/data/etc/systemd/system/systemd-reboot.service
@@ -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 Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Reboot
+Documentation=man:systemd-halt.service(8)
+DefaultDependencies=no
+Requires=shutdown.target final.target
+After=shutdown.target final.target
+
+[Service]
+Type=oneshot
+ExecStartPre=-/bin/bash -c /opt/openslx/scripts/systemd-shutdown_prescript
+ExecStart=/usr/bin/systemctl --force reboot