Thu, 02 Aug 2012 22:07:29 +0200
Correct and update smf(5) logic to accommodate latest vendor version.
Support older and newer platforms by condtionally installing the
manifest to either /var/svc or cacnonical /lib/svc, and avoid usage of
svccfg(1) delete now considered risky. Leverage create_default_instance
smf macro to specify default instance instead of using instance element.
Provide a refresh execution method along with start and stop. Neither
change permissions of manifest nor call the redundant svcadm(1) disable.
michael@428 | 1 | |
michael@428 | 2 | CC = cc |
michael@428 | 3 | CFLAGS = |
michael@428 | 4 | CPPFLAGS = |
michael@428 | 5 | LDFLAGS = |
michael@428 | 6 | LIBS = -lpopt |
michael@428 | 7 | |
michael@428 | 8 | MUTEX_DOT_C = mutex.c |
michael@428 | 9 | |
michael@428 | 10 | all: mutex |
michael@428 | 11 | |
michael@428 | 12 | mutex: $(MUTEX_DOT_C) |
michael@428 | 13 | $(CC) $(CFLAGS) $(CPPFLAGS) -o mutex $(MUTEX_DOT_C) $(LDFLAGS) $(LIBS) |
michael@428 | 14 | |
michael@428 | 15 | clean: |
michael@428 | 16 | -rm -f mutex |
michael@428 | 17 |