Magellan Linux

Annotation of /trunk/openssh/sshd.service

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2215 - (hide annotations) (download)
Mon Jun 24 11:26:12 2013 UTC (11 years, 4 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 niro 1341 [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 niro 1763 ExecStart=/usr/sbin/sshd -D
10     ExecReload=/bin/kill -HUP $MAINPID
11 niro 2215 KillMode=process
12     Restart=always
13 niro 1341
14     [Install]
15     WantedBy=multi-user.target