0

I'm trying to get my glassfish server to run as soon as I start the computer, but I run into the following error:

When I try to execute the "update-rc.d" command, it complains that it does not find the command.

enter image description here

I´m using Ubuntu Server (version 18.04.1). What do I have to do to make this command work? Will there be a substitute command for this?

TwoDent
  • 109

2 Answers2

1

you have a syntax error in your command - update

sudo update-rc.d glassfish defaults 90 10

Edit :In then image you provided you issued the command sudo uptade-rc.d glassfish defaults 90 10 which results in the error you received due to the fact that no such executable exists.

Elder Geek
  • 36,023
  • 25
  • 98
  • 183
abu_bua
  • 10,783
  • That does not work with systemd see https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units – Panther Aug 02 '18 at 17:54
0

See Panther's comment above.. I almost missed it:

That does not work with systemd see digitalocean.com/community/tutorials/… – Panther

This was helpful: https://askubuntu.com/a/1147142/795299

But if you came here for a GCP GCE VM see this: https://stackoverflow.com/questions/30766912/how-do-i-add-a-startup-script-to-an-existing-vm-from-the-developer-console/30766913

alchemy
  • 762