diff options
Diffstat (limited to 'smarttrafficmeter.install')
-rw-r--r-- | smarttrafficmeter.install | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/smarttrafficmeter.install b/smarttrafficmeter.install new file mode 100644 index 000000000000..b7bf6154a221 --- /dev/null +++ b/smarttrafficmeter.install @@ -0,0 +1,28 @@ +post_install() { + systemctl enable smarttrafficmeter + systemctl start smarttrafficmeter + echo "#####################################################################" + echo "# #" + echo "# Smart Traffic Meter should now be running as a service (daemon) #" + echo "# Open your web browser and navigate to 127.0.0.1:7676 #" + echo "# If the page does not open #" + echo "# you may need to execute the following comands in the command line #" + echo "# sudo systemctl enable smarttrafficmeter #" + echo "# sudo systemctl start smarttrafficmeter #" + echo "# and restart your computer #" + echo "# #" + echo "#####################################################################" +} + +pre_upgrade() { + systemctl stop smarttrafficmeter +} + +post_upgrade() { + systemctl start smarttrafficmeter +} + +pre_remove() { + systemctl stop smarttrafficmeter + systemctl disable smarttrafficmeter +} |