freebsd-ports/misc/e2fsprogs-libuuid/files/uuidd.in
Matthias Andree e426b7c2e7 make uuidd depend on ldconfig during boot
PR:		235298
Submitted by:	takefu@airport.fm
2019-02-04 00:38:46 +00:00

27 lines
721 B
Bash

#!/bin/sh
#
# rcNG script to start uuidd at boot-time on rcNG-enabled systems,
# such as FreeBSD. Note: Starting uuidd at boot-time is not strictly
# necessary, the library will - as of 1.41.5 - silently launch an
# instance of uuidd that exits after 300 seconds; for most accurate
# time-based uuids generated from unprivileged user accounts it may be
# useful to run it system-wide.
#
# (C) 2008, 2009 by Matthias Andree.
# Licensed under the modified (= 2-clause) BSD license.
# PROVIDE: uuidd
# REQUIRE: FILESYSTEMS ldconfig
# BEFORE: DAEMON
. /etc/rc.subr
name="uuidd"
rcvar=uuidd_enable
command="%%PREFIX%%/sbin/uuidd"
procname="${command}"
: ${uuidd_enable="NO"}
load_rc_config $name
run_rc_command "$1"