File: README

package info (click to toggle)
shepherd 1.0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,828 kB
  • sloc: lisp: 8,779; sh: 3,586; makefile: 289; ansic: 50
file content (129 lines) | stat: -rw-r--r-- 4,039 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
* An -*- outline -*- of the GNU Daemon Shepherd.

** What is the Shepherd?

The GNU Daemon Shepherd or GNU Shepherd is a service manager written in
Guile that looks after the herd of system services, providing a
replacement for the service-managing capabilities of SysV-init (or any
other init) with a dependency-based system with a convenient interface.
It is intended for use on GNU/Linux and GNU/Hurd, but it is supposed to work
on every POSIX-like system where Guile is available.

In a previous life, the GNU Shepherd was known as GNU dmd, the
daemon-managing daemon.

** Requirements

The GNU Shepherd depends on the following pieces of software:

  - GNU Guile 3.0.x, https://gnu.org/software/guile
  - Fibers 1.1.0 or later, https://codeberg.org/guile/fibers

** Getting started

Like all GNU packages, this program can be installed using familiar
incantations such as:

  autoreconf -vfi
  ./configure --prefix=/some/where
  make
  make check
  make install

Actually setting up the Shepherd currently requires some work.  You
should read the Texinfo manual for details:

  info -f shepherd.info

** Installing development snapshots with Guix

The Shepherd repository can be used as a Guix “channel”.  To do that, change
~/.config/guix/channels.scm along these lines:

  (append (list (channel
		 (name 'shepherd)
		 (url "https://codeberg.org/shepherd/shepherd.git")
		 (branch "main")
		 (introduction
		  (make-channel-introduction
		   "788a6d6f1d5c170db68aa4bbfb77024fdc468ed3"
		   (openpgp-fingerprint
		    "3CE464558A84FDC69DB40CFB090B11993D9AEBB5")))))
	  %default-channels)

Once that is done, run ‘guix pull’.  This will give you additional ‘shepherd’
packages with higher version numbers:

  guix package -A shepherd

You can then install it with ‘guix install shepherd’, or e.g. use it in an
operating-system configuration:

  (operating-system
    ...
    (essential-services
     (modify-services (operating-system-default-essential-services
                       this-operating-system)
       (shepherd-root-service-type
        config =>
        (shepherd-configuration
         (inherit config)
         (shepherd (@ (shepherd-package) shepherd)))))))

** More information

Detailed instructions on installing the GNU Shepherd are available in
the file `INSTALL'.  A list of user-visible changes between releases can
be found in the file `NEWS'.

See the Git version control history for a list of people who contributed to
this software in the form of changes to the code:

  https://codeberg.org/shepherd/shepherd/commits/branch/main

This program can be distributed under the terms of the GNU General
Public License, version 3 or any later version, see the file `COPYING'
for details.  The Texinfo manual can be distributed under the terms of
the GNU Free Documentation License, version 1.3 or any later version,
see the manual for details.  Note that for any copyright year range
specified as YYYY-ZZZZ in this package, the range specifies every single
year in that closed interval.


The GNU Shepherd home page is at:

  https://shepherding.services/

The GNU Shepherd is developed jointly with the GNU Guix project.  Both
are essential components in putting the pieces together to build the GNU
system.  Join us now!

** Hacking

Using GNU Guix, you can enter a development environment by running:

  guix shell -D -f guix.scm

or simply:

  guix shell

The first time you obtain a copy of the repository, authenticate it by
running:

  guix git authenticate				\
      788a6d6f1d5c170db68aa4bbfb77024fdc468ed3	\
      3CE464558A84FDC69DB40CFB090B11993D9AEBB5

The command exits with zero on success, and errors out otherwise.  It installs
Git hooks such as subsequent invocations of ‘git pull’ and ‘git push’ will
automatically authenticate it.

** Reporting bugs

Please report bugs on Codeberg:

  https://codeberg.org/shepherd/shepherd/issues

Alternatively, you can send bug reports by email to <bug-guix@gnu.org>, with
"Shepherd" and the version number in the Subject line.