Switch from Systemd to Enit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
name: ssh-keygen
|
||||
description: Generate SSH keys
|
||||
type: simple
|
||||
start_cmd: /usr/bin/ssh-keygen -A
|
||||
exit_method: kill
|
||||
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
name: sshd
|
||||
description: OpenSSH Daemon
|
||||
type: background
|
||||
start_cmd: /sbin/sshd -D
|
||||
exit_method: kill
|
||||
restart: true
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user