18 lines
531 B
SYSTEMD
18 lines
531 B
SYSTEMD
# sudo cp vcpe.service /lib/systemd/system/
|
|
# sudo ln -s /lib/systemd/system/vcpe.service /etc/systemd/system/multi-user.target.wants/vcpe.service
|
|
# sudo systemctl daemon-reload
|
|
# sudo systemctl enable vcpe
|
|
[Unit]
|
|
Description=vCPE Service
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=5
|
|
User=root
|
|
WorkingDirectory=/home/jw/vcpe/srcs
|
|
ExecStart=/usr/bin/env /home/jw/vcpe/srcs/vcpe_main dhcpd -m -n vxlan0 -c ./config/vcpe.cfg -d ./config/ -k pqwAQ81rxg70aoy3v+Jjrw==
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |