Skip to content

Commit

Permalink
Let debhelper manage init scripts
Browse files Browse the repository at this point in the history
Fixes python-diamond/Diamond/issues/python-diamond#96
  • Loading branch information
deejay1 committed Feb 19, 2015
1 parent a83470d commit c5f8428
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,4 @@ chmod +x /usr/bin/diamond
# Log / Run directory permissions
chown -R diamond /var/log/diamond

if [ -x /lib/init/upstart-job ]
then
ln -f -s /lib/init/upstart-job /etc/init.d/diamond
fi

exit 0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def running_under_virtualenv():

if distro == 'Ubuntu':
data_files.append(('/etc/init',
['debian/upstart/diamond.conf']))
['debian/diamond.upstart']))
if distro in ['centos', 'redhat', 'debian', 'fedora']:
data_files.append(('/etc/init.d',
['bin/init.d/diamond']))
Expand Down

0 comments on commit c5f8428

Please sign in to comment.