Add systemd service file for lerproxy
- cmd/lerproxy/lerproxy.service - Created new file with systemd unit configuration to run lerproxy as a service - Defined [Unit], [Service], and [Install] sections with appropriate settings and dependencies
This commit is contained in:
16
cmd/lerproxy/lerproxy.service
Normal file
16
cmd/lerproxy/lerproxy.service
Normal file
@@ -0,0 +1,16 @@
|
||||
# systemd unit to run lerproxy as a service
|
||||
[Unit]
|
||||
Description=lerproxy
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=mleku
|
||||
ExecStart=/home/mleku/.local/bin/lerproxy -m /home/mleku/mapping.txt
|
||||
Restart=always
|
||||
Wants=network-online.target
|
||||
# waits for wireguard service to come up before starting, remove the wg-quick@wg0 section if running it directly on an
|
||||
# internet routeable connection
|
||||
After=network.target network-online.target wg-quick@wg0.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user