~crass/samhain/trunk

« back to all changes in this revision

Viewing changes to init/samhain.startMACOSX.in

  • Committer: katerina
  • Date: 2006-10-30 20:05:40 UTC
  • Revision ID: svn-v4:90a4cbc2-0407-0410-83b7-83702fd2185f:trunk:69
MacOS X init script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. /etc/rc.common
 
4
 
 
5
StartService() {
 
6
 
 
7
        ConsoleMessage "Starting service @install_name@."
 
8
        @sbindir@/@install_name@ start
 
9
 
 
10
}
 
11
 
 
12
StopService() {
 
13
 
 
14
        ConsoleMessage "Stopping service @install_name@."
 
15
        @sbindir@/@install_name@ stop
 
16
 
 
17
}
 
18
 
 
19
RestartService() {
 
20
 
 
21
        ConsoleMessage "Restarting service @install_name@."
 
22
        @sbindir@/@install_name@ restart
 
23
 
 
24
}
 
25
 
 
26
 
 
27
RunService "$1"