View Single Post
  #9  
Old 22.07.2017, 17:09
pietrek pietrek is offline
DSL Light User
 
Join Date: Oct 2010
Posts: 29
Default

Code:
pietrek@testujemy:~/jd2$ cat start.sh
#!/bin/bash
cd /home/pietrek/jd2
java -Djava.awt.headless=true -jar JDownloader.jar >/dev/nu
l 2>/dev/null &
Code:
pietrek@testujemy:/etc$ cat rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runl
vel.
# 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.

su -c "/home/pietrek/jd2/start.sh" pietrek

exit 0
Reply With Quote