mynode/rootfs/standard/etc/systemd/system/webssh2.service
2020-01-06 17:46:29 -06:00

25 lines
523 B
Desktop File

# WebSSH2 service
# /etc/systemd/system/webssh2.service
[Unit]
Description=WebSSH2
Wants=www.service mynode_docker_images.service
After=www.service mynode_docker_images.service
[Service]
WorkingDirectory=/opt/mynode/webssh2
ExecStart=/usr/bin/docker run --rm --name webssh2 -p 2222:2222 webssh2
ExecStop=/usr/bin/docker stop -t 2 webssh2
User=root
Group=root
Type=simple
TimeoutSec=240
Restart=always
RestartSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=webssh2
[Install]
WantedBy=multi-user.target