=== Piper-Off is now known as Monthrect === zerozero is now known as zeronove === zeronove is now known as zerozero === zerozero is now known as skdjfhasldhfg === skdjfhasldhfg is now known as zerozero [03:29] Hi. I'm trying to start a crontab job but it doesn't seem to be starting. I don't seem to have the log files either... [03:31] Update: I have found some logs in the syslog but am not sure that there is anything useful in there [03:31] engineer-pearl: Can you please paste the output of your crobtab? [03:33] The only output of crontab -l that is not commented is "@reboot (. ~/.profile; /user/bin/screen -dmS gameserver-screen /home/engineerpearl0/bootscript.sh)" [03:33] put a full path to the .profile [03:33] also i'm not sure if the () bit actually works, I've never seen that, never tried that :) [03:33] ^ [03:34] running the reboot now [03:35] still no screen to be resumed [03:36] heh [03:36] /user/bin/screen [03:36] took me three tries to spot it [03:37] O__o [03:37] Yep that would do it [03:40] The command is now "@reboot /usr/bin/screen -dmS gameserver-screen /home/engineerpearl0/bootscript.sh" and it still is saying there is no screen to be resumed [03:41] OH [03:41] I forgot the ./ [03:42] engineer-pearl: Got it now? :D [03:43] I hopefully will when I remember if the ./ goes in the beginning (before the /home) or right before the name of the file [03:44] note that the shell command for 'source' is '.' [03:44] the / is part of the path [03:47] ... still no screen to be resumed... [03:48] isn't there supposed to be a crontab error log somewhere? [03:48] what's the line now? is there anything in the /var/log/auth.log? or syslog? [03:48] annoyingly, cron likes to _email_ errors :/ that made more sense in the 80s and 90s.. [03:49] @reboot /usr/bin/screen -dmS gameserver-screen /home/engineerpearl0/./bootscript.sh [03:49] I don't have an email server on this machine so its emailing is doing no good [03:50] authlog has a lot of sessions opening and closing [03:50] syslog is mentioning hourly stuff but nothing relevant [03:52] is there somewhere the emails sit if they can not be actually emailed? [03:52] it's possible that your bootscript.sh is expecting a different PATH too. read through it, see what executables it calls without using full paths? [03:54] Not calling any exicutables without full paths, but I changed it from bash .......... to just /path/./file [03:54] ? [03:54] When running a bash script I usually do bash filename [03:55] sure, that's handy if the sysadmin puts 'noexec' on your homedir filesystem [03:55] nope, didn't fix it. [03:56] It shouldn't have even had time to get past "/home/engineerpearl0/gitasist/./gitupdate pull" [[a script I wrote]] [03:56] btw all the /./ things in your paths aren't needed [03:57] . in a path refers to 'this directory'; if you're execugin things not in PATH, say, ./scripts/foo then the . says 'start from the current working directory' [03:57] it is asking for a password... I thought screen would protect me from that but... [03:57] I thought the ./ helped to exicute things [03:58] it can if the file you're executing is in the current working directory but not in the PATH with a fully-qualified directory name === tsimonq2alt is now known as tsimonq2 [03:59] hmm... hold on I need to figure out an escape and move my command to my root folder ((long story short: oops" [04:00] Would screen close imediatly if it were running as a dameon and it ran into a request for password? [04:01] I would hope not, but it can't really tell what's a request for password or not, it's all just IO to screen [04:02] well I adjusted that so it doesn't happen again [04:03] still no screen [04:03] I don't understand rrrrrgh some error logs would be helpful here!!!! [04:04] you can try looking in /var/spool/mail/ [04:07] I found something odd but irrelevant. [04:08] :/ [04:18] here's something: there's something about a crontab.allow list [04:18] which of course I misspelled [04:20] ay, if you've fiddled with the /etc/cron.allow or /etc/cron.deny files then you've got to make sure they still describe what you want; but I think the default is anyone is allowed to use cron, no? [04:20] not according to the man page [04:21] "If neither of these files exists, then depending on site-dependent configuration parameters, only the super user will be allowed to use this command, or all users will be able to use this command." [04:21] so it's hit or miss [04:22] wait, is @reboot allowed for basic users? [04:22] sure, from vixie's point of view; I think our configuration allows anyone to use it though; I don't have any /etc/cron.{allow,deny} files, but my crontab seems to work okay... [04:22] YEP THAT'S THE PROBLEM RIGHT THERE [04:28] or not [05:09] I have an update towards the good! I have error logs now! [05:15] engineer-pearl: great! :) that is a worthy accomplishments :) [05:15] still working on finding a replacement for runuser though. aparently that's not allowed. -_o_- [05:17] oooh found one [05:17] giving it a test [05:18] uh [05:18] why not just use the specified user's crontab? [05:18] because that won't run at reboot [05:18] :/ [05:18] o_O [05:18] That was my first setup [05:19] normally cron's @reboot thing is used because users can't write their own sysv-init scripts or upstart configurations or systemd unit files [05:20] You're talking over my head but I'm listening [05:21] I need to run a bash script at startup, and if there is a way to do it that won't rely on crontab I'm in [05:21] ((I have never gotten that thing to work)) [05:21] what release are you on? [05:22] Ubuntu 16.04.1 LTS [05:22] (I just upgraded today [05:34] engineer-pearl: okay, it's a little complicated to write systemd unit files but then you can manage it with the systemd tools -- systemctl could then enable or disable it, you can have it depend upon e.g. networking to be up and running, and so on [05:34] the plus side to systemd is the docs are pretty good: https://www.freedesktop.org/software/systemd/man/systemd.unit.html and https://www.freedesktop.org/software/systemd/man/systemd.service.html# should be your starting points [05:34] oh uh... is this easier to learn or more flexible than than upstart? I can stop working on that if it is easier. [05:35] I think systemd is more flexible than upstart; I think upstart is easier than systemd [05:35] but 16.04 LTS uses systemd as init and service manager, so that's what's there :) hehe [05:36] Okay then I'll switch over [05:36] there are a lot of examples in /lib/systemd/system/ that you can copy from too :) [05:37] Umm... question: I'm trying to run it in "screen" so I can access it later. Do I need to make any adjustments later? [05:37] ((one of the things I am doing is starting up a game which has terminal access. I want the game to start up, but I also want that access)) [05:37] ahhh so screen wasn't just for getting it to run persistently? hrm... [05:37] oh is that going to make it weirder [05:38] I haven't seen screen used in a systemd unit file before. I can't think of anything off-hand that would keep it from working... [05:41] Lots of fancy files... doesn't look to be in bash but idk if I'd know them at this level... [05:41] engineer-pearl: well, here's a dude who starts screen to start rtorrent: http://www.linuxveda.com/2014/04/28/autostart-process-gnu-screen-systemd/ [05:41] indeed it's very much not bash. that's good and bad. [05:41] :/ so much for just getting a script to run at startup I guess [05:41] and this guy's got some insane cool tmux thing. Dunno -why- but he's got one: http://askubuntu.com/a/802272/33812 [05:42] wait this line looks like what I want! Ubuntu 16.04.1 LTS [05:42] hold on didn't copy [05:42] ExecStart=/usr/bin/screen -d -m -S rtorrent /usr/bin/rtorrent [05:42] I thought you'd like that bit :) [05:44] I have questions but it is late on a night where I have to be up bright and early [05:44] :/ [05:44] ugh :( [05:44] oh poop poop poop [05:45] IIf I do it this way, I don't know how to make it so I can attach [05:45] It will be owned by not-me [05:45] it'd be owned by whatever user you configure here [05:45] If it is owned by me, I should be able to attach, right? [05:46] so you could do something like 'sudo -u USERNAME screen -RAD' [05:51] I'm not entirely sure about the command but yeah, that seems about right, expecially the r [05:52] hehe [05:52] screen -RAD was just the thing I memorized because screen's baffling array of command line options is baffling [05:52] okay, so I've got the tabs, and I'll look into it later [05:52] (I switched to tmux ages ago for no real good reason) [05:53] there I think it's just 'tmux attach' :) heh [05:53] but for now I bid thee a good night [05:53] you also, have fun :) === iberezovskiy|off is now known as iberezovskiy [08:25] Good morning === ktosiek is now known as ktosiekk === ktosiekk is now known as ktosiek === ktosiek is now known as ktosie === ktosie is now known as ktosiek [11:10] Hello guys [11:11] I have a smart host (remote.domainX.pt) connected with a remote mail server (mail.domainY.pt), that uses getmail to receive mail from that mail.domainY.pt, and then reroute it with sendmail to local user accounts in this server. My smart host uses mydomain as domainX.pt, config in postfix. [11:11] I am able to login clients with this smart host, using domainX.pt. To send mail i am using smtp_sasl_password_maps: [11:11] test@domainX.pt test@domainX.pt:qwe12 [11:11] With getmail i was using as destination: [11:11] [destination] type = MDA_external path = /usr/sbin/sendmail arguments = ("-bm", "test") unixfrom = true [11:12] And didnt notice that i was using my @remote.domainX.pt local domain instead of the @domainX.pt do receive mail at postfix. [11:12] When i tried to redirect mail (with postfix aliases) from a gmail account through this smart host to another gmail account, postfix didnt send my mails with @domainX.pt, it sends as @remote.domainX.pt, and as expected i receive a message from my remote server saying: [11:12] Dec 6 14:37:12 remote.domainX.pt postfix/smtp[28504]: 0B8BD259F57: to=, orig_to=, relay=mail.domainX.pt[]:25, delay=0.1, delays=0/0.01/0.07/0.02, dsn=5.0.0, status=bounced (host mail.domainX.pt[] said: 550-Verification failed for 550-No Such User Here 550 Sender verify failed (in reply to RCPT TO command)) [11:12] After some tests at sendmail through getmail, i also notice that i could only use local user account names as destination or use full email name only with @remote.domainX.pt and not @domainX.pt as i was expecting. [11:12] I have also tested with virtual_alias_maps instead of aliases from alias_maps but with that there is no domain associated to my local accounts, it can only be used to local delivery. [11:12] So i am trying to figure out how can i solve this with postfix, to handle just @domainX.pt to receive mail instead of @remote.domainX.pt but i am not seeing a way to fix this. [11:13] Here is my main.cf: http://pastebin.com/d9hZaTwp === deadnull is now known as _deadnull === _deadnull is now known as deadnull === skorv is now known as Guest94362 [13:43] Hi can anyone please help me out with server downtime. I seem to be getting attacked but hoped someone could help with where. Netstat isn't showing a lot of connections but it seems like a dos as my server is going offline frequently. thanks for any help [13:44] jonah: whats your isp say [13:45] mybalzitch: they are useless and not answering the phone [13:46] do your mrtg/cacti/whatever port graphs indicate you are being dos'd? [13:57] coreycb:im going to drop the arm patch we were carrying for nova its no longer needed apparently [13:58] zul, ok if you are sure [13:59] coreycb: i asked [13:59] zul, cool [14:27] coreycb: http://pastebin.ubuntu.com/23603616/ [14:33] Greeting, what is best to use a RAID controller support ubuntu? video streaming storage="40TB" & SSD [14:34] zul, maybe transport_url is missing from nova.conf? [14:36] coreycb: yep [14:37] coreycb: ill figure it out [15:30] coreycb: think i have a fix...testing it === iberezovskiy is now known as iberezovskiy|off [16:12] coreycb: nova should be fine again [16:30] hi [16:30] who here uses evolution? [16:30] it acting weird with some accounts [16:30] wont read imap folder [16:30] yet [16:35] hehehehe [17:15] using ldapsearch I am trying to get info about one user, but the result comes back with a search reference. How do I tell it to follow the reference? [17:27] Pinkamena_D: I don't believe ldapsearch has built-in support for chasing references [17:36] hello guys [17:37] http://serverfault.com/questions/819844/not-able-to-forward-mail-from-external-domains-through-relays [17:37] anyone? === genii_ is now known as genii [19:30] hello, I am wondering what is the simplest way to set up a git server with public clones and authenticated push. I have done this before with ssh and git-daemon but it was a struggle and I can't figure it out again. [19:30] and is there a guide that works for this? [19:33] solidpizza: I had good luck with gitolite3 - it provides a github'ish ssh interface i.e. git@git.example.com:owner/repo - and apache for the r/o http access [19:45] solidpizza: I like gitlab, but its definitely a heavier solution. [20:56] I am trying to make a script run at startup, and am currently using http://www.linuxveda.com/2014/04/28/autostart-process-gnu-screen-systemd/ as a template, but my thing is not running. Is there something that breaks down the parts for me so I can figure out what is going wrong? [21:03] Status upstart gives the error ""com.ubuntu.Upstart" does not exist" [21:05] engineer-pearl: you said you're using ubuntu 16.04? upstart is gone, replaced by systemd [21:06] oops I meant status systemd [21:06] 'status' is a command that interacts with upstart [21:06] huh, odd. I've used it for a few other things. Must be because I upgraded, so it's not a new install. [21:07] So what's systemd's method of checking things? [21:08] service xx status [21:08] oh backwards got it [21:08] 'service' is a generic tool that will handle all kinds of services (init scripts / upstart / systemd) properly [21:10] well it looks like I can't have it check its own service... hmm [21:10] what are you trying to do, exactly? [21:10] run a script that opens screen and does some stuff at startup. So far I have yet to confirm that it actually opens screen [21:11] I meant which service are you trying to check the status of [21:12] I'm trying to get my script (currently named UpdateAndStart@.service) running, and I wanted to know if systemd was having issues so I could move forward [21:12] Looks like it's not found. [21:16] I was following the instructions here: http://www.linuxveda.com/2014/04/28/autostart-process-gnu-screen-systemd/ [21:16] Are there better ones somewhere? [22:10] Running 16.04 server for an media server, with no-ip for dynamic dns. I can ssh in via the WAN DNS name & ip, but not from a LAN ip. ufw is disabled. openssh is listening on all ip's. what am I missing? [22:43] fyi, it was an ethernet adapter conflict. server was confused about which interface should respond. === JanC_ is now known as JanC