I'm trying to make a simple upstart script for teamspeak server, but can't make it work.
When I say initctl start it just executes but never finishes or even emits any message. Same is happening for stop.
To be sure I am not doing anything wrong, I have copied the cron script and tried to run it, but it happens the same.
what am I doing wrong here?
here is my script for TS3:
# myservice - myservice job file description "my service description" author "Me <firstname.lastname@example.org>" # Stanzas # # Stanzas control when and how a process is started and stopped # See a list of stanzas here: http://upstart.ubuntu.com/wiki/Stanzas#respawn # When to start the service start on runlevel  # When to stop the service stop on runlevel  # Automatically restart process if crashed respawn # Essentially lets upstart know the process will detach itself to the background expect fork # Start the process script emit going into TS3 dir chdir /home/danizmax/teamspeak3-server_linux-x86/ emit starting TS3 exec su -c "/home/danizmax/teamspeak3-server_linux-x86/ts3server_startscript.sh start" danizmax & emit done end script
I tried even with simplest script, and that also doesn't work:
description "regular background program processing daemon" start on runlevel  stop on runlevel [!2345] expect fork respawn exec echo example console output
Thank you for your help.