Crontab / Reboot

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Good day all,



I would like to create a Crontab in order to have a few things running automatically on server reboot. Ubuntu Server 16.04 LTS. I need some help as I am a beginner, please.



Here are commands to be used (network must be available):



As user



  • cd daemon/phi/

  • sudo ./luxd -listen=0 -reindex=1(There should be a 16 minutes delay between this command and next one as root)

As root



  • bash /home/pool/yiimp_install_scrypt/screen-scrypt.sh (There should be a
    2 seconds delay between this command and next one as user)

As user



  • cd /var/stratum


  • sudo bash run.sh phi


Thank you very much in advance for any help!







share|improve this question






















  • Since network is a prerequisite, crontab seems inappropriate. Try a systemd target instead, triggering a root script. You seem to need a small bit of mentoring on permissions and shell script writing to really get rolling.
    – user535733
    May 15 at 12:39















up vote
0
down vote

favorite












Good day all,



I would like to create a Crontab in order to have a few things running automatically on server reboot. Ubuntu Server 16.04 LTS. I need some help as I am a beginner, please.



Here are commands to be used (network must be available):



As user



  • cd daemon/phi/

  • sudo ./luxd -listen=0 -reindex=1(There should be a 16 minutes delay between this command and next one as root)

As root



  • bash /home/pool/yiimp_install_scrypt/screen-scrypt.sh (There should be a
    2 seconds delay between this command and next one as user)

As user



  • cd /var/stratum


  • sudo bash run.sh phi


Thank you very much in advance for any help!







share|improve this question






















  • Since network is a prerequisite, crontab seems inappropriate. Try a systemd target instead, triggering a root script. You seem to need a small bit of mentoring on permissions and shell script writing to really get rolling.
    – user535733
    May 15 at 12:39













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Good day all,



I would like to create a Crontab in order to have a few things running automatically on server reboot. Ubuntu Server 16.04 LTS. I need some help as I am a beginner, please.



Here are commands to be used (network must be available):



As user



  • cd daemon/phi/

  • sudo ./luxd -listen=0 -reindex=1(There should be a 16 minutes delay between this command and next one as root)

As root



  • bash /home/pool/yiimp_install_scrypt/screen-scrypt.sh (There should be a
    2 seconds delay between this command and next one as user)

As user



  • cd /var/stratum


  • sudo bash run.sh phi


Thank you very much in advance for any help!







share|improve this question














Good day all,



I would like to create a Crontab in order to have a few things running automatically on server reboot. Ubuntu Server 16.04 LTS. I need some help as I am a beginner, please.



Here are commands to be used (network must be available):



As user



  • cd daemon/phi/

  • sudo ./luxd -listen=0 -reindex=1(There should be a 16 minutes delay between this command and next one as root)

As root



  • bash /home/pool/yiimp_install_scrypt/screen-scrypt.sh (There should be a
    2 seconds delay between this command and next one as user)

As user



  • cd /var/stratum


  • sudo bash run.sh phi


Thank you very much in advance for any help!









share|improve this question













share|improve this question




share|improve this question








edited May 15 at 12:13

























asked May 15 at 12:08









Infantryman

11




11











  • Since network is a prerequisite, crontab seems inappropriate. Try a systemd target instead, triggering a root script. You seem to need a small bit of mentoring on permissions and shell script writing to really get rolling.
    – user535733
    May 15 at 12:39

















  • Since network is a prerequisite, crontab seems inappropriate. Try a systemd target instead, triggering a root script. You seem to need a small bit of mentoring on permissions and shell script writing to really get rolling.
    – user535733
    May 15 at 12:39
















Since network is a prerequisite, crontab seems inappropriate. Try a systemd target instead, triggering a root script. You seem to need a small bit of mentoring on permissions and shell script writing to really get rolling.
– user535733
May 15 at 12:39





Since network is a prerequisite, crontab seems inappropriate. Try a systemd target instead, triggering a root script. You seem to need a small bit of mentoring on permissions and shell script writing to really get rolling.
– user535733
May 15 at 12:39
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036505%2fcrontab-reboot%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036505%2fcrontab-reboot%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error