Switch from Systemd to Enit

This commit is contained in:
2025-03-12 13:25:30 +02:00
parent de741d8b89
commit 6157db67c1
5 changed files with 24 additions and 33 deletions
+5
View File
@@ -0,0 +1,5 @@
name: ssh-keygen
description: Generate SSH keys
type: simple
start_cmd: /usr/bin/ssh-keygen -A
exit_method: kill
-12
View File
@@ -1,12 +0,0 @@
[Unit]
Description=Generate sshd keys
Before=ssh.server
[Service]
Type=oneshot
ExecStart=/usr/bin/ssh-keygen -A
RemainAfterExit=true
StandardOutput=journal
[Install]
WantedBy=multi-user.target
+6
View File
@@ -0,0 +1,6 @@
name: sshd
description: OpenSSH Daemon
type: background
start_cmd: /sbin/sshd -D
exit_method: kill
restart: true
-11
View File
@@ -1,11 +0,0 @@
[Unit]
Description=OpenSSH Daemon
[Service]
ExecStart=/usr/sbin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target