openrc/init.d/devdb.in

22 lines
310 B
Plaintext
Raw Normal View History

#!@SBINDIR@/runscript
2009-05-01 19:41:40 +05:30
# Copyright (c) 2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.
2008-05-12 20:41:04 +05:30
description="Creates the dev database"
depend()
{
need localmount
}
start()
{
ebegin "Building the dev database"
2008-05-12 20:41:04 +05:30
if [ /var/run/dev.db -nt /dev ]; then
:
else
dev_mkdb
fi
eend $?
}