summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d')
-rwxr-xr-xapp-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d36
1 files changed, 36 insertions, 0 deletions
diff --git a/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d b/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d
new file mode 100755
index 0000000..d296554
--- /dev/null
+++ b/app-antivirus/antivir-internet-update-manager/files/2.4.0.6.3/antivir-ium.init.d
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+
+svc_name="Avira AntiVir Internet Update Manager"
+
+avium_script="/usr/lib/AntiVir/ium/avium"
+avium_config="/etc/avira/ium.conf"
+
+depend() {
+ need net
+ use logger dns
+}
+
+checkconfig() {
+ if [ ! -x "${avium_script}" ]; then
+ eerror "AntiVir IUM script [${avium_script}] missing"
+ return 1
+ fi
+ if [ ! -r "${avium_config}" ]; then
+ eerror "AntiVir IUM config [${avium_config}] missing"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting ${svc_name}"
+ "${avium_script}" start
+ eend $?
+}
+
+stop() {
+ checkconfig || return 2
+ ebegin "Stopping ${svc_name}"
+ "${avium_script}" stop
+ eend $?
+}