* added support to Emerge -repository w/ repo/*
[t2sde.git] / package / network / nut / nut.init
blob98a5ad90dd8ce483780c7e7df46462f7ef8bd8cb
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/nut/nut.init
3 # Copyright (C)  2013 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # Desc: Nut
13 # Runlevel: 40 rcX
16 main_begin
18         block_begin(start, `Starting Nut Daemon')
19                 check(`/usr/bin/upsdrvctl start')
20                 check(`/usr/sbin/upsd &>/dev/null')
21                 check(`/usr/sbin/upsmon &>/dev/null')
22         block_end
24         block_begin(stop, `Stopping Nut Daemon')
25                 check(`/usr/sbin/upsmon -c stop')
26                 check(`/usr/sbin/upsd -c stop &> /dev/null')
27                 check(`/usr/bin/upsdrvctl stop &> /dev/null')
28         block_end
30 main_end