forked from rezabojnordi/sre_devops_command
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystemd
More file actions
50 lines (42 loc) · 1018 Bytes
/
systemd
File metadata and controls
50 lines (42 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
systemctl
name+type+config
type:
service
mount
socet
ssh
runlevel0.target
cd /lib/systemd/system
-----------------------------------------------------------
[Unit]
Description=OpenBSD Secure Shell server
Documentation=man:sshd(8) man:sshd_config(5)
After=network.target auditd.service
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
[Service]
EnvironmentFile=-/etc/default/ssh
ExecStartPre=/usr/sbin/sshd -t
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/usr/sbin/sshd -t
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=notify
RuntimeDirectory=sshd
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target
Alias=sshd.service
-----------------------------------------------------
systemctl command tor
systemctl start tor
systemctl restart tor
systemctl reload tor
systemctl enable tor
systemctl enable tor
systemctl list-unit
systemctl default
systemctl isolate rescue.target
journalctl
------------------------------------------------------