18 lines
561 B
SYSTEMD
18 lines
561 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@<vni id>
|
||
|
[Unit]
|
||
|
Description=vCPE service with user %I
|
||
|
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 -v %I -m -n vxlan0 -c ./config/vcpe.cfg -d ./config/ -k pqwAQ81rxg70aoy3v+Jjrw==
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|