2019-11-23 04:27:35 +00:00
|
|
|
# WebSSH2 service
|
|
|
|
# /etc/systemd/system/webssh2.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=WebSSH2
|
2020-02-23 04:17:58 +00:00
|
|
|
Wants=www.service docker_images.service
|
|
|
|
After=www.service docker_images.service
|
2019-11-23 04:27:35 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-04-23 02:59:37 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
2020-02-23 04:17:58 +00:00
|
|
|
ExecStart=/usr/bin/docker run --rm --name webssh2 -p 2222:2222 -v /opt/mynode/webssh2/config.json:/usr/src/config.json webssh2
|
2019-11-26 02:17:32 +00:00
|
|
|
ExecStop=/usr/bin/docker stop -t 2 webssh2
|
2019-11-23 04:27:35 +00:00
|
|
|
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
Type=simple
|
2022-03-17 02:55:15 +00:00
|
|
|
TimeoutSec=120
|
2019-11-23 04:27:35 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=webssh2
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|