vcpe/config/vcpe.service

18 lines
510 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 -d ./config/ -k pqwAQ81rxg70aoy3v+Jjrw==
[Install]
WantedBy=multi-user.target