Update 1.RockyLinux.md
This commit is contained in:
parent
7e94065701
commit
94526adba7
@ -147,7 +147,7 @@ web.run_app(app, port=9999)
|
|||||||
|
|
||||||
`/lib/systemd/system/password.service `
|
`/lib/systemd/system/password.service `
|
||||||
|
|
||||||
```sh
|
```ini
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Custom Python Service
|
Description=Custom Python Service
|
||||||
After=multi-user.target
|
After=multi-user.target
|
||||||
@ -168,3 +168,22 @@ systemctl enable password
|
|||||||
systemctl start password.service
|
systemctl start password.service
|
||||||
systemctl status password.service
|
systemctl status password.service
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`/etc/systemd/system/docker-stop.service`
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[Unit]
|
||||||
|
Description=Stop docker and umount luks data partition before shutting down
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=true
|
||||||
|
ExecStop=/opt/docker-stop.sh
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable docker-stop
|
||||||
|
systemctl status docker-stop
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user