I have struggled with this problem for two days and have tried many things to fix it to no avail.  I'm hoping you guys can help me out.I am trying to create an Upstart job that starts a new screen session on boot, in which I would like to automatically start a java executable.  Here is the .conf file I am currently trying to get to work, although I have tried several others:description     Run the bungeecord jarstart on (local-filesystems and net-device-up IFACE=eth0 and runlevel [2345])stop on runlevel [016]exec start-stop-daemon --start -c ridog --exec /usr/bin/screen -- -dmUS BungeeCord java -server -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:MaxPermSize=356m -XX:ParallelGCThreads=6 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseCompressedOops -XX:+AggressiveOpts -Xmx256M -jar BungeeCord.jarpre-stop script    screen -S BungeeCord -X foo end^Mend scriptTo my knowledge, the script seems to work fine, I can run sudo start bungeecord and get the intended result, however, restarting the machine does not work.  Instead, I get this error in the /var/log/upstart/bungeecord.log:Cannot make directory '/var/run/screen': Permission deniedI've looked up this error and the search results are obscure and inconclusive. I've tried running the command as root, this removes the error but still no screen session.  I've tried different commands like this: su ridog -c screen -dmS BungeeCord java -jar /home/ridog/BungeeCord/BungeeCord.jarNothing seems to work and I'm out of ideas, any help would be appreciated.Thanks.
How do I start a screen session using an upstart job with a non privileged user?
gnu screen;startup;upstart
Problem solved, I switched from using upstart to using cron.  It was much more simple and everything works great now.For anyone reading this that might be curious as to how I did it, I made a simple shell script:#!/bin/bashjava -Xms256M -Xmx256M -jar /home/ridog/BungeeCord/BungeeCord.jarAnd set it to run on startup with a new line in crontab -e:@reboot screen -dmS BungeeCord sh /home/ridog/BungeeCord/run.shThanks for your help!