Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial systemd support [Closes: issue1015]
Support for file-rc is still available and can be enabled via FILE_RC class.
- Loading branch information
Showing
20 changed files
with
242 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
etc/grml/fai/config/files/etc/systemd/logind.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# See logind.conf(5) for details | ||
|
||
# This file was deployed via grml-live's | ||
# ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/15-initsetup, using | ||
# ${GRML_FAI_CONFIG}/config/files/etc/systemd/logind.conf/GRMLBASE | ||
|
||
[Login] | ||
NAutoVTs=12 | ||
#ReserveVT=6 | ||
#KillUserProcesses=no | ||
#KillOnlyUsers= | ||
#KillExcludeUsers=root | ||
#InhibitDelayMaxSec=5 | ||
#HandlePowerKey=poweroff | ||
#HandleSuspendKey=suspend | ||
#HandleHibernateKey=hibernate | ||
#HandleLidSwitch=suspend | ||
#PowerKeyIgnoreInhibited=no | ||
#SuspendKeyIgnoreInhibited=no | ||
#HibernateKeyIgnoreInhibited=no | ||
#LidSwitchIgnoreInhibited=yes | ||
#IdleAction=ignore | ||
#IdleActionSec=30min | ||
#RuntimeDirectorySize=10% | ||
#RemoveIPC=yes |
6 changes: 6 additions & 0 deletions
6
etc/grml/fai/config/files/etc/systemd/system/getty@tty1.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/grml-runtty /dev/tty1 /usr/share/grml-scripts/run-welcome root | ||
# ExecStart=-/sbin/agetty --autologin $USERNAME --noclear %I 38400 linux | ||
TTYVTDisallocate=no |
4 changes: 4 additions & 0 deletions
4
etc/grml/fai/config/files/etc/systemd/system/getty@tty10.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/agetty --noclear %I 38400 linux |
4 changes: 4 additions & 0 deletions
4
etc/grml/fai/config/files/etc/systemd/system/getty@tty11.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/grml-runtty /dev/tty11 /usr/bin/htop root |
4 changes: 4 additions & 0 deletions
4
etc/grml/fai/config/files/etc/systemd/system/getty@tty12.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/grml-runtty /dev/tty12 /usr/share/grml-scripts/run-journalctl root |
4 changes: 4 additions & 0 deletions
4
etc/grml/fai/config/files/etc/systemd/system/getty@tty2.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/grml-runtty /dev/tty2 /usr/share/grml-scripts/run-screen root |
4 changes: 4 additions & 0 deletions
4
etc/grml/fai/config/files/etc/systemd/system/getty@tty3.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/grml-runtty /dev/tty3 /usr/share/grml-scripts/run-screen root |
4 changes: 4 additions & 0 deletions
4
etc/grml/fai/config/files/etc/systemd/system/getty@tty4.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/grml-runtty /dev/tty4 /usr/share/grml-scripts/run-screen $USERNAME |
4 changes: 4 additions & 0 deletions
4
etc/grml/fai/config/files/etc/systemd/system/getty@tty5.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/grml-runtty /dev/tty5 /bin/zsh $USERNAME |
4 changes: 4 additions & 0 deletions
4
etc/grml/fai/config/files/etc/systemd/system/getty@tty6.service.d/override.conf/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Service] | ||
Type=idle | ||
ExecStart= | ||
ExecStart=-/sbin/grml-runtty /dev/tty6 /bin/zsh $USERNAME |
14 changes: 14 additions & 0 deletions
14
etc/grml/fai/config/files/etc/systemd/system/grml-autoconfig.service/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## This is the systemd service for grml-autoconfig | ||
|
||
[Unit] | ||
Description=grml-autoconfig configures the live system during the boot process (late userspace). | ||
Documentation=man:grml-autoconfig | ||
Before=basic.target udev.service | ||
DefaultDependencies=no | ||
ConditionPathExists=/etc/init.d/grml-autoconfig | ||
ConditionKernelCommandLine=grml-autoconfig | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=/etc/init.d/grml-autoconfig start |
20 changes: 20 additions & 0 deletions
20
etc/grml/fai/config/files/etc/systemd/system/ssh-bootoption.service/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file was deployed via grml-live's | ||
# ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/15-initsetup, using | ||
# ${GRML_FAI_CONFIG}/config/files/etc/systemd/system/ssh-bootoption.service/GRMLBASE | ||
|
||
[Unit] | ||
Description=OpenBSD Secure Shell server | ||
After=ssh-keygen network.target auditd.service | ||
ConditionKernelCommandLine=ssh | ||
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run | ||
|
||
[Service] | ||
EnvironmentFile=-/etc/default/ssh | ||
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
KillMode=process | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
Alias=sshd.service |
14 changes: 14 additions & 0 deletions
14
etc/grml/fai/config/files/etc/systemd/system/ssh-keygen.service/GRMLBASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file was deployed via grml-live's | ||
# ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/15-initsetup, using | ||
# ${GRML_FAI_CONFIG}/config/files/etc/systemd/system/ssh-keygen.service/GRMLBASE | ||
|
||
[Unit] | ||
Description=SSH keygen | ||
Before=ssh.service | ||
|
||
[Service] | ||
ExecStart=/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -C '' -N '' | ||
ExecStart=/usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -C '' -N '' | ||
ExecStart=/usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -C '' -N '' | ||
ExecStart=/usr/bin/ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -C '' -N '' | ||
Type=oneshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
PACKAGES aptitude | ||
|
||
file-rc | ||
multitail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PACKAGES aptitude | ||
|
||
network-manager | ||
|
||
# network-manager-openvpn | ||
# network-manager-pptp | ||
# network-manager-vpnc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters