rc.local error compatablity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
. /var/www/
nohup python3 /var/www/
exit 0
This is my rc.local file i am trying to run my python3 code but when i check status of rc.local
rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/
Drop-In: /lib/systemd/
Active: failed (Result: exit-code) since Tue 2019-10-01 09:32:46 UTC; 30min ago
Oct 01 09:32:46 ip-172-31-17-137 systemd[1]: Starting /etc/rc.local Compatibility...
Oct 01 09:32:46 ip-172-31-17-137 systemd[1]: rc-local.service: Control process exited,
Oct 01 09:32:46 ip-172-31-17-137 systemd[1]: Failed to start /etc/rc.local Compatibili
Oct 01 09:32:46 ip-172-31-17-137 systemd[1]: rc-local.service: Unit entered failed sta
Oct 01 09:32:46 ip-172-31-17-137 systemd[1]: rc-local.service: Failed with result 'exi
I am getting this error i tried restarting and changing the mode of the rc.local still i am getting this error please help me out with this
the same i did in another server i am able to run the code but not in this server
the server is deployed in aws