tabs
This commit is contained in:
parent
8dcdb48a7a
commit
31fe10952a
|
@ -152,21 +152,21 @@ journald ? Autre page… ?
|
||||||
Exemple avec ssh.service sous Debian 8 :
|
Exemple avec ssh.service sous Debian 8 :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=OpenBSD Secure Shell server
|
Description=OpenBSD Secure Shell server
|
||||||
After=network.target auditd.service
|
After=network.target auditd.service
|
||||||
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
|
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/default/ssh
|
EnvironmentFile=-/etc/default/ssh
|
||||||
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
|
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
Alias=sshd.service
|
Alias=sshd.service
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
> **Note* : Chaque fois qu'une unité est modifié, il est nécessaire de recharger systemd avec `systemctl daemon-reload`.
|
> **Note* : Chaque fois qu'une unité est modifié, il est nécessaire de recharger systemd avec `systemctl daemon-reload`.
|
||||||
|
|
Loading…
Reference in a new issue