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