aboutsummaryrefslogtreecommitdiffstats
path: root/news/inn/files/innd.sh
blob: 1bcc4f7b5ad53dc485a17b926f29577b26c4a1b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
if [ $# -eq 0 -o x$1 = xstart ]; then
   if [ -x !!PREFIX!!/news/bin/rc.news -a -f !!PREFIX!!/news/db/history.dir ]; then
      su -fm news -c !!PREFIX!!/news/bin/rc.news && echo ' inn'
   fi
fi
if [ x$1 = xstop ]; then
      su -fm news -c '!!PREFIX!!/news/bin/rc.news stop'
fi