=== cnj_ is now known as cnj | ||
=== markthomas is now known as markthomas|away | ||
=== zz_DenBeiren is now known as DenBeiren | ||
=== MoeD_ is now known as MoeD | ||
=== Tribaal_ is now known as Tribaal | ||
=== mld_ is now known as mld | ||
=== Lcawte|Away is now known as Lcawte | ||
=== bilde2910|away is now known as bilde2910 | ||
Aison | I asked about GVRP Support in Ubuntu Server, now I found my own solution | 16:32 |
---|---|---|
Aison | maybe somebody is interested | 16:33 |
Aison | in "/etc/network/if-pre-up.d/vlan" replace "vconfig add $IF_VLAN_RAW_DEVICE $VLANID" by "ip link add link $IF_VLAN_RAW_DEVICE $IFACE type vlan id $VLANID gvrp on loose_binding on" | 16:33 |
Aison | and in "/etc/network/if-post-down.d/vlan" replace "vconfig rem $IFACE" by "ip link delete $IFACE" | 16:34 |
Aison | this change should be even done in official release. vconfig should be replace by ip link add anyway | 16:36 |
TimR | Hi guys I am having apache2 issues the server isnt redirecting to the correct site and I have sites enabled but its not redirecting | 17:07 |
=== IdleOne is now known as Guest98005 | ||
DonRichie | TimR: Error 204: Not enough information to compute solution. Aborting... | 19:09 |
lnxmen | Probably he has wrong root path in virtual host. | 19:22 |
lnxmen | Or wrong configured .htaccess | 19:23 |
lnxmen | Or simply he did not restart apache. | 19:23 |
=== bilde2910 is now known as bilde2910|away | ||
stiv2k | hi | 22:01 |
lnxmen | Hi | 22:02 |
stiv2k | what is the simplest way to run a command as root once a day | 22:02 |
lnxmen | Use cron | 22:03 |
stiv2k | to restart my tf2 server i want it to run service tf2-server restart | 22:03 |
stiv2k | but it has to run with root permission | 22:03 |
lnxmen | Yes, that's possible. | 22:03 |
Patrickdk | ssh into the server | 22:03 |
stiv2k | lnxmen: i just put it in /etc/cron.daily or whatever? | 22:03 |
lnxmen | stiv2k: /etc/crontab | 22:04 |
stiv2k | that's roots crontab? | 22:04 |
Patrickdk | na, don't use /etc/crontab | 22:04 |
Patrickdk | use /etc/cron.daily/xxxx | 22:04 |
Patrickdk | root has it's own, using crontab -e -u root | 22:04 |
stiv2k | oh | 22:04 |
lnxmen | Patrickdk: Why not? | 22:04 |
lnxmen | I am just curious. | 22:05 |
stiv2k | so make a sh script, #!/bin/sh, then on the next line service tf2-server restart, save the script in /etc/cron.daily with +x permission | 22:05 |
lnxmen | I always used it in this way. | 22:05 |
Patrickdk | lnxmen, cause then you will break every UPGRADE you do to the system | 22:05 |
Patrickdk | why have to manually fix that file? when /etc/cron.daily was provided for this purpose? | 22:05 |
Patrickdk | yes you can, but you have to FIX it yourself too | 22:05 |
=== bilde2910|away is now known as bilde2910 | ||
=== neunon_ is now known as neunon | ||
=== Tzunamii_ is now known as Tzunamii | ||
=== DavidDuffey is now known as dduffey | ||
lnxmen | Okay. Thanks for the explanation. | 22:06 |
=== hardwire- is now known as hardwire | ||
cryptodan | server scripts dont go in cron | 22:06 |
stiv2k | ? | 22:06 |
=== robher_ is now known as robher | ||
cryptodan | stiv2k: what are you trying to do? | 22:08 |
lnxmen | He tries to execute script as root daily. | 22:10 |
cryptodan | stiv2k: bad idea | 22:11 |
cryptodan | and also the tf2 server daemon will auto restart upon crash | 22:11 |
cryptodan | stiv2k: read this https://wiki.teamfortress.com/wiki/Linux_dedicated_server | 22:12 |
stiv2k | cryptodan: its about the updates | 22:13 |
stiv2k | cryptodan: they update the server version pretty often, every week or so, and it checks for updates when it restarts | 22:13 |
stiv2k | so if it doesnt restart, it falls behind in version and nobody can play on it | 22:14 |
cryptodan | stiv2k: you still should not be running it as root | 22:14 |
stiv2k | the server itself does not run as root | 22:14 |
stiv2k | it runs via init script | 22:14 |
stiv2k | that starts it under a normal user | 22:14 |
cryptodan | stiv2k: but if you run the tf2server script as root in cron it runs as root | 22:14 |
stiv2k | using start-stop-daemon | 22:14 |
stiv2k | start-stop-daemon --start --chuid $USER --user $USER --chdir $BINARYPATH --exec "/usr/bin/screen" -- -dmS $SCREENREF $BINARYPATH/$BINARYNAME $OPTS | 22:15 |
stiv2k | ^^^ | 22:15 |
stiv2k | so the server never runs as root | 22:15 |
cryptodan | so then you install the cron setting under the user as your tf2 server runs under | 22:17 |
stiv2k | no | 22:18 |
stiv2k | that user cannot run init scripts | 22:18 |
stiv2k | init script can only be run from sudo | 22:19 |
cryptodan | then when that cron entry starts its starts all processes after that as root | 22:19 |
cryptodan | so follow that guide I linked to https://wiki.teamfortress.com/wiki/Linux_dedicated_server to do it right. and your server should never fall behind as when you start it up it should autocheck for updates | 22:20 |
stiv2k | yes it does but it needs to be restarted periodically to check the updates | 22:20 |
cryptodan | it auto checks | 22:20 |
=== SJrX is now known as SJr | ||
=== Lcawte is now known as Lcawte|Away | ||
=== Metacity is now known as TotallyNotMetaci | ||
=== TotallyNotMetaci is now known as Metacity |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!