2022-12-07 02:34:49 +00:00
|
|
|
# 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
|
2022-11-15 03:12:08 +00:00
|
|
|
[Unit]
|
2022-11-15 03:13:02 +00:00
|
|
|
Description=vCPE Service
|
2022-11-15 03:12:08 +00:00
|
|
|
StartLimitIntervalSec=0
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
2022-11-15 03:13:02 +00:00
|
|
|
RestartSec=5
|
2022-11-15 03:12:08 +00:00
|
|
|
User=root
|
2022-11-15 08:32:53 +00:00
|
|
|
WorkingDirectory=/home/jw/vcpe/srcs
|
|
|
|
ExecStart=/usr/bin/env /home/jw/vcpe/srcs/vcpe_main dhcpd -m -n vxlan0 -i ./config/opendhcp.ini -c ./config/vcpe.cfg -d ./config/ -k pqwAQ81rxg70aoy3v+Jjrw==
|
2022-11-15 03:12:08 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|