Commit Graph

10 Commits

Author SHA1 Message Date
Armijn Hemel
67971a4349 dhclient would return 0 if invoked without an interface argument, so set this
to eth0. Oh, what a hack...but it works :)

svn path=/nixpkgs/trunk/; revision=5050
2006-03-17 16:33:59 +00:00
Armijn Hemel
35e30e7797 adapt files so that "networking" now also work with our new scheme
svn path=/nixpkgs/trunk/; revision=5049
2006-03-17 14:16:11 +00:00
Armijn Hemel
3d24096431 introduce a rudimentary (working) form of the topological sort principle.
We can now start SSH with optional syslogging support. Also, if a program
is not already present in the /etc/rc.d "profile" (actually, not it has become
a collection of profiles) it will be automatically added.

This sounds hackish, and it probably is, but also, it might be the best
workable solution for now...

svn path=/nixpkgs/trunk/; revision=5044
2006-03-15 15:51:32 +00:00
Armijn Hemel
617d06c71c add a "name" action, which pretty prints the "nice name" for a package (so,
mailserver or smtpd or so for a mailserver like sendmail)

svn path=/nixpkgs/trunk/; revision=5043
2006-03-15 13:47:03 +00:00
Armijn Hemel
304f3fbe9d some small changes...probably the way it is done now (declaring the
dependencies, such as "networking" in Nix expressions) is not entirely
right, at least, trying to start them from for example this SSH script is
not the right way. A cleaner solution is being developed :)

svn path=/nixpkgs/trunk/; revision=5034
2006-03-14 13:44:28 +00:00
Armijn Hemel
9159ca026d make syslog work with our new start/stop scripts. It is still full of race
conditions and dependencies don't work yet, but it's a start

svn path=/nixpkgs/trunk/; revision=5023
2006-03-10 15:05:22 +00:00
Armijn Hemel
6562861ba4 fix some brainfarts
svn path=/nixpkgs/trunk/; revision=5021
2006-03-10 13:32:54 +00:00
Armijn Hemel
742c1ef85e add a bit more boiler plate code. Right now I just touch a file in $STATEDIR,
maybe this should include the path to the Nix store and a sanity check
should be added to make sure that if we check the file in $STATEDIR that
it is indeed from an instance of the service that we want to start. This
adds complexity, because how should we deal with the situation of they are
not equal.

TODO: add a "status" command, or a "version" command, which displays which
service is currently registered with the system as "running"

svn path=/nixpkgs/trunk/; revision=5015
2006-03-09 13:20:40 +00:00
Armijn Hemel
947c09a4fd add some more functions. Needs more code.
svn path=/nixpkgs/trunk/; revision=4851
2006-02-17 16:29:04 +00:00
Armijn Hemel
8b0dd0fcdb stubs for generic functions. This should grow into generic functions for
stopping/starting/querying services. No code yet...

svn path=/nixpkgs/trunk/; revision=4827
2006-02-16 18:25:05 +00:00