[16:32] <Aison> I asked about GVRP Support in Ubuntu Server, now I found my own solution
[16:33] <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:34] <Aison> and in "/etc/network/if-post-down.d/vlan" replace "vconfig rem $IFACE" by "ip link delete $IFACE"
[16:36] <Aison> this change should be even done in official release. vconfig should  be replace by ip link add anyway
[17:07] <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
[19:09] <DonRichie> TimR: Error 204: Not enough information to compute solution. Aborting...
[19:22] <lnxmen> Probably he has wrong root path in virtual host.
[19:23] <lnxmen> Or wrong configured .htaccess
[19:23] <lnxmen> Or simply he did not restart apache.
[22:01] <stiv2k> hi
[22:02] <lnxmen> Hi
[22:02] <stiv2k> what is the simplest way to run a command as root once a day
[22:03] <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:04] <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:05] <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:06] <lnxmen> Okay. Thanks for the explanation.
[22:06] <cryptodan> server scripts dont go in cron
[22:06] <stiv2k> ?
[22:08] <cryptodan> stiv2k: what are you trying to do?
[22:10] <lnxmen> He tries to execute script as root daily.
[22:11] <cryptodan> stiv2k: bad idea
[22:11] <cryptodan> and also the tf2 server daemon will auto restart upon crash
[22:12] <cryptodan> stiv2k: read this https://wiki.teamfortress.com/wiki/Linux_dedicated_server
[22:13] <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:14] <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:15] <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:17] <cryptodan> so then you install the cron setting under the user as your tf2 server runs under
[22:18] <stiv2k> no
[22:18] <stiv2k> that user cannot run init scripts
[22:19] <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:20] <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