Raised This Month: $51 Target: $400
 12% 

Switching Windows to Linux


Post New Thread Reply   
 
Thread Tools Display Modes
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 02-10-2013 , 18:34   Re: Switching Windows to Linux
Reply With Quote #11

# /etc/init.d/cron status
hamilton5 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-11-2013 , 01:37   Re: Switching Windows to Linux
Reply With Quote #12

Quote:
Originally Posted by hamilton5 View Post
# /etc/init.d/cron status
Code:
savsin-linux@savsinlinux:~$ /etc/init.d/cron status
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service cron status

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status cron
cron start/running, process 1131
says its running.
Doc-Holiday is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-12-2013 , 14:15   Re: Re: Switching Windows to Linux
Reply With Quote #13

Quote:
Originally Posted by Doc-Holiday View Post
Code:
savsin-linux@savsinlinux:~$ /etc/init.d/cron status
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service cron status

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status cron
cron start/running, process 1131
says its running.
Maybe I'm doing something wrong. Its ubuntu server and. The file is /etc/crontab.

Code:
@reboot ncbtest /home/ncbtest/start_servers.sh
Doc-Holiday is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-16-2013 , 22:57   Re: Switching Windows to Linux
Reply With Quote #14

So I'm using crontab -e to edit my individual crontab.

The restart function is working fine. What's not working is my start script. Is I call the script by copy and paste from crontab. It doesn't run. It could be an issue with not being able to login
Doc-Holiday is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 02-17-2013 , 06:50   Re: Switching Windows to Linux
Reply With Quote #15

is there actually a user ncbtest? does the script have +x ? run the script from copy and paste from crontab?? is there any output at all?; ls -l /home/ncbtest/start_servers.sh

Last edited by hamilton5; 02-17-2013 at 06:52.
hamilton5 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-17-2013 , 12:36   Re: Re: Switching Windows to Linux
Reply With Quote #16

Quote:
Originally Posted by hamilton5 View Post
is there actually a user ncbtest? does the script have +x ? run the script from copy and paste from crontab?? is there any output at all?; ls -l /home/ncbtest/start_servers.sh
Runs from a copy pate just fine. Us the use is there tried putting it in the users crontab file still didn't work.

The restart I put in to the root crontab file work just not the users. Do to fix this I put it in a file that auto execs stuff
Doc-Holiday is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-17-2013 , 15:34   Re: Switching Windows to Linux
Reply With Quote #17

I tend to just put it in the users crontab by creating a text file named crontab.txt with this text
Code:
@reboot /home/ncbtest/start_servers.sh
and then running this as that user
Code:
crontab crontab.txt
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Jargon
SourceMod Donor
Join Date: Jun 2012
Location: Sydney, Australia
Old 08-05-2013 , 18:13   Re: Switching Windows to Linux
Reply With Quote #18

Major necro but I'm about to make the leap to a dedi myself and am going with a Linux distro as well.

How have you found the experience so far Doc?
Jargon is offline
Ade
I love purple
Join Date: May 2010
Old 08-06-2013 , 07:07   Re: Switching Windows to Linux
Reply With Quote #19

when i hosted my own linux dedis there were no process hangs, but when i first started renting win servers it would hang after some crash i think, host saying maybe it was due to some sql file that i didn't use anyway but came with sourcemod
with starting and restarting i had no issues tho, and i heard a crash script isn't hard to find regardless of OS, i think it's even on the official srcds page
__________________
Ade is offline
Jargon
SourceMod Donor
Join Date: Jun 2012
Location: Sydney, Australia
Old 08-07-2013 , 17:33   Re: Switching Windows to Linux
Reply With Quote #20

What distro were you using Ade? Was there much tinkering/optimisation of the kernel needed or did it perform ok for you out of the box?
Jargon is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode