From 8b0dd0fcdb91f405f4c7c145b64bfe0008261e26 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Thu, 16 Feb 2006 18:25:05 +0000 Subject: [PATCH] stubs for generic functions. This should grow into generic functions for stopping/starting/querying services. No code yet... svn path=/nixpkgs/trunk/; revision=4827 --- pkgs/servers/server-scripts/generic/functions | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pkgs/servers/server-scripts/generic/functions diff --git a/pkgs/servers/server-scripts/generic/functions b/pkgs/servers/server-scripts/generic/functions new file mode 100644 index 00000000000..4143163865f --- /dev/null +++ b/pkgs/servers/server-scripts/generic/functions @@ -0,0 +1,8 @@ +#! @bash@/bin/sh -e + +## Generic service scripts for NixOS, which provide +## * functions to write state to files (/var/run/nix-services) +## * functions to read state from file (/var/run/nix-services) +## * sanity checking functions + +STATEDIR=/var/run/nix-services