Magellan Linux

Contents of /trunk/openssh/sshd.service

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2215 - (show annotations) (download)
Mon Jun 24 11:26:12 2013 UTC (10 years, 10 months ago) by niro
File size: 295 byte(s)
-only kill the process on restart, not all user sessions and always restart sshd on failure
1 [Unit]
2 Description=OpenSSH Server Daemon.
3 After=syslog.target network.target
4
5 [Service]
6 PIDFile=/var/run/sshd.pid
7 # test ssh setup
8 ExecStartPre=/usr/sbin/sshd -t
9 ExecStart=/usr/sbin/sshd -D
10 ExecReload=/bin/kill -HUP $MAINPID
11 KillMode=process
12 Restart=always
13
14 [Install]
15 WantedBy=multi-user.target