• R/O
  • HTTP
  • SSH
  • HTTPS

pysilhouette.git: Commit

メインリポジトリ


Commit MetaInfo

Revision8be9aca0e278d717b391da4ab345437ce3cb2ca7 (tree)
Time2010-06-04 18:36:04
AuthorTaizo ITO <taizo.ito@hde....>
CommiterTaizo ITO

Log Message

Change Summary

Incremental Difference

--- a/doc/redhat.spec
+++ b/doc/redhat.spec
@@ -6,6 +6,7 @@
66 %define _prefix /opt
77
88 %define __python $(which python)
9+%define __chkconfig /sbin/chkconfig
910 %define __app pysilhouette
1011 %define __prog silhouette
1112 %define __progd %{__prog}d
@@ -113,13 +114,22 @@ fi
113114 if [ ! -e %{__datadir} ]; then
114115 mkdir -p %{__datadir} 2> /dev/null
115116 fi
117+# Processing of silhouetted
118+if [ $1 = 1 ]; then
119+ %{__chkconfig} --add silhouetted >/dev/null 2>&1
120+ %{__chkconfig} silhouetted on >/dev/null 2>&1
121+ %{_initrddir}/silhouetted start >/dev/null 2>&1
122+fi
116123
117124 %postun
118125 if [ $1 = 0 ]; then
119126 /usr/sbin/userdel %{_user} 2> /dev/null || :
120127 /usr/sbin/groupdel %{_group} 2> /dev/null || :
121128 fi
122-
129+if [ $1 = 0 ]; then
130+ %{_initrddir}/silhouetted stop >/dev/null 2>&1
131+ %{__chkconfig} --del silhouetted >/dev/null 2>&1
132+fi
123133
124134 %files -f INSTALLED_FILES
125135 %defattr(-,root,root)
Show on old repository browser