Public bug reported:

#!/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

** Affects: sysvinit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1846185

Title:
  rc.local error compatablity

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1846185/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to