1SIMPLEVISOR-CONTROL(1)   simplevisor-control man page   SIMPLEVISOR-CONTROL(1)
2
3
4

NAME

6       simplevisor-control - run simplevisor as a service
7

SYNOPSIS

9       simplevisor-control command [path]
10

DESCRIPTION

12       The simplevisor-control script can be used to run simplevisor as a
13       service.
14
15       If this script is used the pidfile value specified in the simplevisor
16       configuration file will be ignored.
17

OPTIONS

19       command run "simplevisor-control help" to list the available commands
20
21       path look at simplevisor man page for path behavior.
22

EXAMPLES

24       On Linux you can look at the script shipped in the examples folder
25       which is called simplevisor-new-instance, it creates folders and the
26       configuration to run a simplevisor instance.
27
28           mkdir -p /var/lib/myinstance/bin
29           mkdir -p /var/lib/myinstance/data
30           mkdir -p /var/lib/myinstance/etc
31
32       Create a file /var/lib/myinstance/bin/service with content and make it
33       executable:
34
35           #!/bin/sh
36           #
37           # init script that can be symlinked from /etc/init.d
38           #
39
40           # chkconfig: - 90 15
41           # description: my simplevisor instance
42
43           . "/var/lib/myinstance/etc/simplevisor.profile"
44           exec "/usr/bin/simplevisor-control" ${1+"$@"}
45
46       /var/lib/myinstance/etc/simplevisor.profile could look like:
47
48           # main
49           export SIMPLEVISOR_NAME=myinstance
50           # if you want to run it as another user:
51           #export SIMPLEVISOR_USER=games
52           export SIMPLEVISOR_CONF=/var/lib/myinstance/etc/simplevisor.conf
53           export SIMPLEVISOR_PIDFILE=/var/lib/myinstance/data/simplevisor.pid
54           export SIMPLEVISOR_LOCKFILE=/var/lib/myinstance/data/simplevisor.lock
55
56       Create /var/lib/myinstance/etc/simplevisor.conf according to
57       simplevisor documentation.
58
59       For Red Hat or Fedora you can symlink service script:
60
61           ln -s /var/lib/myinstance/bin/service /etc/init.d/myinstance
62
63       And use it as a normal service:
64
65           /sbin/service myinstance start|stop|status|restart|check
66

AUTHOR

68       Massimo Paladin <massimo.paladin@gmail.com>
69
70       Copyright (C) CERN 2013-2021
71
72
73
74                                  2019-08-23            SIMPLEVISOR-CONTROL(1)
Impressum