no etc / init Eu coloquei um arquivo .conf:
# -*- upstart -*-
# Upstart configuration script for WordVectServer
description "WordVectServer"
kill timeout 5
pre-start script
mkdir -p /var/log/wordvecServer/
sleep 10
end script
exec sudo WordVectServer server /home/marco/WVLoader/src/G.bin >>
/var/log/wordvecServer/wordvecServer.log
start on runlevel [2345]
e tornou-o executável com
sudo chmod +x wordvecServer.conf
Mas ao tentar iniciar a execução:
marco@PC:/etc/init$ sudo start sudo chmod +x wordvectServer
[sudo] password for marco:
start: Unable to connect to Upstart: Failed to connect to socket
/com/ubuntu/upstart: Connection refused
marco@PC:~$ sudo apt-get install upstart
Reading package lists... Done
Building dependency tree
Reading state information... Done
upstart is already the newest version (1.13.2-0ubuntu21.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Então ... o que fazer para resolver o problema? Alguma dica? Ansioso para sua ajuda amável. Marco