rc.local error compatablity

Bug #1846185 reported by Abhilash anand kulkarni
6
This bug affects 1 person
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/html/env/bin/activate
nohup python3 /var/www/html/SOCO/soco_invex/manage.py runserver 0.0.0.0:8000 &

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/system/rc-local.service; static; vendor preset: enable
  Drop-In: /lib/systemd/system/rc-local.service.d
           └─debian.conf
   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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.