Skip to content

Commit

Permalink
systemd service for client
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Stoner committed Jul 12, 2023
1 parent b6162a2 commit 9c4924e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions systemd/ethsplainer-client.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[Unit]
Description=Ethsplainer Web Front End Client
After=hostname-register.service

[Service]
User=root
Group=root
WorkingDirectory=/home/ubuntu/Ethsplainer/client

ExecStart=/usr/bin/yarn start -p 80
Type=simple
Restart=always
RestartSec=2
KillMode=process

# Logging
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=ethsplainer-client
SyslogLevel=info

# Sandboxing
ProtectSystem=strict
PrivateDevices=yes
PrivateTmp=yes
NoNewPrivileges=yes
ReadWritePaths=/home/ubuntu/Ethsplainer/client

[Install]
WantedBy=multi-user.target

0 comments on commit 9c4924e

Please sign in to comment.