summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-09-26 11:31:32 -0700
committerhagbard <vyosdev@derith.de>2019-09-26 11:31:32 -0700
commit6956bfe0620638adbad36f8cdf6d312884ba82ff (patch)
tree05420d8bc36c0d518e35233be0e8d020b6a48f27 /op-mode-definitions
parent9b55f7c7b9ecc49e6efe075ad24a54baff719e8e (diff)
downloadvyos-1x-6956bfe0620638adbad36f8cdf6d312884ba82ff.tar.gz
vyos-1x-6956bfe0620638adbad36f8cdf6d312884ba82ff.zip
ipoe-server: T1690 - restart op-mode command for service ipoe-server
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/ipoe-server.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/op-mode-definitions/ipoe-server.xml b/op-mode-definitions/ipoe-server.xml
index ea14e9a5c..369ceebea 100644
--- a/op-mode-definitions/ipoe-server.xml
+++ b/op-mode-definitions/ipoe-server.xml
@@ -23,4 +23,14 @@
</node>
</children>
</node>
+ <node name="restart">
+ <children>
+ <leafNode name="ipoe-server">
+ <properties>
+ <help>show ipoe-server status</help>
+ </properties>
+ <command>if [ -e /var/run/accel_ipoe.pid ]; then /usr/bin/accel-cmd restart -p 2002; else echo "ipoe-server not running"; fi</command>
+ </leafNode>
+ </children>
+ </node>
</interfaceDefinition>