Skip to content

Instantly share code, notes, and snippets.

@platinumthinker
Last active January 19, 2018 13:28
Show Gist options
  • Select an option

  • Save platinumthinker/f0d9be8e1d8c2a49545e2fc39a48f2f7 to your computer and use it in GitHub Desktop.

Select an option

Save platinumthinker/f0d9be8e1d8c2a49545e2fc39a48f2f7 to your computer and use it in GitHub Desktop.
[Unit]
Description=CAPWAP Datapath element
[Service]
ExecStart=/usr/local/bin/capwap-dp -c /etc/ergw-capwap-node/capwap-dp.conf
ExecStartPost=/bin/ip link set tap0 up
ExecStartPost=/bin/ip addr add 192.168.85.1/24 dev tap0
Restart=always
Type=simple
;User=thinker
;CapabilityBoundingSet=CAP_NET_ADMIN CAP_IPC_LOCK CAP_SYS_NICE
[Unit]
After=epmd.service
Requires=epmd.service
[Service]
ExecStartPre=/bin/sleep 5
[Unit]
After=capwap-dp.service
Requires=capwap-dp.service
[Install]
RequiredBy=capwap-dp.service
[Unit]
Description=Erlang Port Mapper Daemon
After=network.target
[Service]
ExecStart=/usr/bin/epmd
Type=simple
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment