Service starts, but not for me

Steve Matzura sm at noisynotes.com
Thu Sep 19 18:49:00 UTC 2024


I have a short startup script that, among other things, starts a 
service, waits a couple seconds, then starts a background process 
requiring the presence of that service. The script runs at boot time 
under a specific user that is not root. On Ubuntu 20.04 LTS it always 
worked. Now, the script fails so I have to execute it manually. When I 
log in to the application administrator account and run the startup 
script, it tries starting the required service, and I get a menu listing 
the three users that are authorized to start the service, and I can pick 
one and provide that user's password. How do I add my application 
administration account to that list, or even better, remove the user 
restriction entirely? Yes, it's easy  to move the startup script to the 
crontab for one of the users for which the service will start 
automatically, but if I did that, I'd have to amend my application 
account's startup script to wait for that service to become active, 
which presents a whole new problem, unless it's enough just to loop on 
looking for the process to show up in ps and then starting the 
background process for the application. Seems to me there's a right and 
a wrong way to do this, and I'd rather learn the right one.


Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240919/b8aec02a/attachment.html>


More information about the ubuntu-users mailing list