-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How would I install additional files (e.g. systemd service file)? #359
Comments
You need to create a "package.service" file in your debian folder.
In your rule file add something similar to the following
|
Thank you. What if I need additional files like configuration, libraries, shell scripts?.. |
I'm not sure to understand your question. Could you clarify ? |
For example, I need to put a config.json to /etc/opt/myprogram/, and script.sh next to Python interpreter in the virtualenv bin subdirectory. |
@me21 Copying file are done using Creation of service unit and copying file are both part of Debian build system. Documentation about this is scattered. |
Hello,
Firstly, thank you for your project! It packages my application along with virtual environment containing its requirements.
However, how would I make my application start automatically after installation? I would like to install a systemd service file and enable the service for auto start up. I guess I can achieve that by editing the debian subdirectory by hand and adding some entries there. I haven't went down that path yet. Or maybe I can change my setup.py to achieve that effect?..
Anyway, I think it would be nice to provide or document a means to install additional files with dh-virtualenv :)
The text was updated successfully, but these errors were encountered: