burnedfaceless
asked on
How to install a Python script as a program in Ubuntu 18.04
I've written some simple Python scripts and now I would like to write a Python script that can be installed and run as a service.
I know how to take a Python program and run it as a service but how would I write a Python program that can be installed?
My operating system is Ubuntu 18.04.
I know how to take a Python program and run it as a service but how would I write a Python program that can be installed?
My operating system is Ubuntu 18.04.
as Arnold said put the script in binary location.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
install, you mean reside in /usr/sbin?
a script commonly is placed it does not get installed i.e. gpkg ?
to dun as a service you have to add the startup/stop in systemv/ or place it in /etc/rc.local
what does the script do?
Might it not be more suitable to have started/run out of cron on a schedule?