Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just created my first .deb file ever from a Python script. I included a package.upstart file under package/debian and all installed great.

However, I noticed that apt-get remove package leaves the upstart script there.

I tested this functionality by removing another program that has an upstart script, and this does seem to be normal behaviour but I would like to confirm this. Is this normal behaviour?

Isn't it bad that the upstart script will be trying to run my program on every boot of a user's machine even if they have removed my application?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

apt-get remove only removes the packages, it does not remove the associated configuration files of the package.

apt-get purge is the command snippet you use if you also want to remove a package's configuration files. Test your application with that and that should get you the result you need.

See also:

share|improve this answer
    
heh, fair enough, thanks! –  newUbuntuDeveloper Dec 31 '12 at 19:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.