~ubuntu-branches/ubuntu/wily/marionnet/wily

« back to all changes in this revision

Viewing changes to useful-scripts/etc_init.d_marionnet-daemon

  • Committer: Package Import Robot
  • Author(s): Lucas Nussbaum
  • Date: 2013-03-29 15:57:12 UTC
  • Revision ID: package-import@ubuntu.com-20130329155712-o0b9b96w8av68ktq
Tags: upstream-0.90.6+bzr407
ImportĀ upstreamĀ versionĀ 0.90.6+bzr407

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
# This file is part of marionnet
 
4
# Copyright (C) 2010 Jean-Vincent Loddo
 
5
#
 
6
# This program is free software: you can redistribute it and/or modify
 
7
# it under the terms of the GNU General Public License as published by
 
8
# the Free Software Foundation, either version 2 of the License, or
 
9
# (at your option) any later version.
 
10
#
 
11
# This program is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
# GNU General Public License for more details.
 
15
#
 
16
# You should have received a copy of the GNU General Public License
 
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
 
 
19
set -e
 
20
PATH=~/bin:~/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 
 
21
 
 
22
case "$1" in
 
23
 start)
 
24
  type marionnet-daemon.byte >/dev/null
 
25
  echo -n "Starting the marionnet daemon..."
 
26
  marionnet-daemon.byte >/dev/null 2>/dev/null &
 
27
  echo " Ok"
 
28
  ;;
 
29
 stop)
 
30
  echo -n "Stopping the marionnet daemon..."
 
31
  killall marionnet-daemon.byte
 
32
  echo " Ok"
 
33
  ;;
 
34
 *)
 
35
  echo "Usage: $0 (start|stop)"
 
36
  echo "Start or stop the marionnet daemon."
 
37
  exit 1
 
38
esac