Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8908931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:18:32+00:00 2026-06-15T03:18:32+00:00

I have an sh script which runs on our server. It is started with

  • 0

I have an sh script which runs on our server.
It is started with nohup from another script so that i can easily close session and it still runs

Main script (which will start this one) is also an sh script. And it can be executed with two parameters:

--start (will start application)
--stop (will stop it using kill PID)

But since application is started by me, none else (except root) can stop already running instance or restart it.

So i was thinking more about changing owner to nobody. Would that help it? If yes, then how can it be done?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:18:33+00:00Added an answer on June 15, 2026 at 3:18 am

    Set up the script to shut itself down on some event, instead of running until killed. Then make the main script trigger that event at --stop (the event can be something simple like creating a specific file, or something more complex like writing a command to a fifo that the script periodically reads). This way, other users should be able to shut the script down no matter who started it.

    How to do this depends on the details of your script. If it doesn’t have a loop in which it can check the shutdown condition itself, you may be able to do something like have it spawn a background process that periodically checks the condition and kills its parent pid when met.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a python script that runs a program, which generates few .exe files
In the office here we have a startup script that runs on the server
I'm maintaining a perl script which runs an automated install of our base server
I have a script which runs when the system boot first time. But that
Currently I have a bash script which runs the find command, like so: find
I have a simple Perl script which runs as a Linux daemon using an
I have a form in html which runs a php script whitch inserts text
I have an Stand alone Application which runs Shell Script(with parameters)in Ubuntu. ProcessBuilder pb1
I have a cron job to run a Ruby script, which runs fine on
I have script which allows to display Bing search results. I can call for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.