tip78 Posted February 26, 2014 Share Posted February 26, 2014 hello my os is centos 6.5 my mta have last version a simple script: #!/bin/sh /path/to/file/mta-server >/dev/null 2>&1 & (or mta-server -d) is not working from crond but perfectly starting server if runs by hands why? Link to comment
0 MTA Team ccw Posted February 26, 2014 MTA Team Share Posted February 26, 2014 Try using -s instead of >/dev/null 2>&1 and see if you get any error messages Link to comment
0 tip78 Posted February 26, 2014 Author Share Posted February 26, 2014 Try using -s instead of >/dev/null 2>&1 and see if you get any error messages well that actualy working but crond is not free then its freezing in tasks i need to launch it in background like samp for example samp runs simple in background using & and errors.. they actualy the same - in case if launched by script or by hands: ================================================================== = Multi Theft Auto: San Andreas v1.3.4 ================================================================== = Server name : Default MTA Server = Server IP address: 1.1.1.1 = Server port : 22003 = = Log file : ../eq7PBPdVqM/mods/deathmatch/logs/server.log = Maximum players : 32 = HTTP port : 0 = Voice Chat : Disabled = Bandwidth saving : Medium ================================================================== [2014-02-26 14:38:07] Resource 'acpanel' requests some acl rights. Use the command 'aclrequest list acpanel' [2014-02-26 14:38:07] ERROR: Couldn't find script server/admin_acl.lua for resource admin2 [2014-02-26 14:38:07] Loading of resource 'admin2' failed [2014-02-26 14:38:07] Resources: 194 loaded, 0 failed [2014-02-26 14:38:07] Starting resources... [2014-02-26 14:38:07] Server minclientversion is now 1.3.5-9.06121 [2014-02-26 14:38:07] Server started and is ready to accept connections! [2014-02-26 14:38:07] To stop the server, type 'shutdown' or press Ctrl-C [2014-02-26 14:38:07] Type 'help' for a list of commands. [2014-02-26 14:38:08] Querying MTA master server... success! (Auto detected IP:1.1.1.1) [2014-02-26 14:38:10] Server stopped! [2014-02-26 14:38:10] Stopping resources.................... [2014-02-26 14:38:10] Closing SQLite3 database Link to comment
0 MTA Team ccw Posted February 26, 2014 MTA Team Share Posted February 26, 2014 Try this: http://pastebin.mtasa.com/333908311 Link to comment
Question
tip78
hello
my os is centos 6.5
my mta have last version
a simple script:
#!/bin/sh
/path/to/file/mta-server >/dev/null 2>&1 &
(or mta-server -d)
is not working from crond but perfectly starting server if runs by hands
why?
Link to comment
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now