reconfigure openssh server before first run
parent
6c3bf050e6
commit
b8368a51b6
|
|
@ -3,4 +3,4 @@ Description=X-Window
|
|||
After=systemd-user-sessions.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/su --login -c /usr/bin/startx
|
||||
ExecStart=/bin/su --login -c exec /usr/bin/startx
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=OpenBSD Secure Shell server
|
||||
After=network.target auditd.service
|
||||
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/ssh
|
||||
ExecStartPre=/usr/sbin/dpkg-reconfigure openssh-server
|
||||
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartPreventExitStatus=255
|
||||
Type=notify
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=sshd.service
|
||||
Loading…
Reference in New Issue