Magellan Linux

Contents of /trunk/openssh/sshd.service

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2683 - (show annotations) (download)
Mon Aug 17 10:02:45 2015 UTC (8 years, 8 months ago) by niro
File size: 339 byte(s)
-generate sshd keys oneshot to fix escaping issues with newer systemd
1 [Unit]
2 Description=OpenSSH Server Daemon.
3 Wants=ssh-keygen.service
4 After=syslog.target network.target ssh-keygen.service
5
6 [Service]
7 PIDFile=/var/run/sshd.pid
8 # test ssh setup
9 ExecStartPre=/usr/sbin/sshd -t
10 ExecStart=/usr/sbin/sshd -D
11 ExecReload=/bin/kill -HUP $MAINPID
12 KillMode=process
13 Restart=always
14
15 [Install]
16 WantedBy=multi-user.target