[03:29] <engineer-pearl> 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] <engineer-pearl> Update: I have found some logs in the syslog but am not sure that there is anything useful in there
[03:31] <tsimonq2> engineer-pearl: Can you please paste the output of your crobtab?
[03:33] <engineer-pearl> 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] <sarnold> put a full path to the .profile
[03:33] <sarnold> also i'm not sure if the () bit actually works, I've never seen that, never tried that :)
[03:33] <tsimonq2> ^
[03:34] <engineer-pearl> running the reboot now
[03:35] <engineer-pearl> still no screen to be resumed
[03:36] <sarnold> heh
[03:36] <sarnold> /user/bin/screen
[03:36] <sarnold> took me three tries to spot it
[03:37] <tsimonq2> O__o
[03:37] <engineer-pearl> Yep that would do it
[03:40] <engineer-pearl> 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] <engineer-pearl> OH
[03:41] <engineer-pearl> I forgot the ./
[03:42] <tsimonq2> engineer-pearl: Got it now? :D
[03:43] <engineer-pearl> 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] <sarnold> note that the shell command for 'source' is '.'
[03:44] <sarnold> the / is part of the path
[03:47] <engineer-pearl> ... still no screen to be resumed...
[03:48] <engineer-pearl> isn't there supposed to be a crontab error log somewhere?
[03:48] <sarnold> what's the line now? is there anything in the /var/log/auth.log? or syslog?
[03:48] <sarnold> annoyingly, cron likes to _email_ errors :/ that made more sense in the 80s and 90s..
[03:49] <engineer-pearl> @reboot /usr/bin/screen -dmS gameserver-screen /home/engineerpearl0/./bootscript.sh
[03:49] <engineer-pearl> I don't have an email server on this machine so its emailing is doing no good
[03:50] <engineer-pearl> authlog has a lot of sessions opening and closing
[03:50] <engineer-pearl> syslog is mentioning hourly stuff but nothing relevant
[03:52] <engineer-pearl> is there somewhere the emails sit if they can not be actually emailed?
[03:52] <sarnold> 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] <engineer-pearl> Not calling any exicutables without full paths, but I changed it from bash .......... to just /path/./file
[03:54] <sarnold> ?
[03:54] <engineer-pearl> When running a bash script I usually do bash filename
[03:55] <sarnold> sure, that's handy if the sysadmin puts 'noexec' on your homedir filesystem
[03:55] <engineer-pearl> nope, didn't fix it.
[03:56] <engineer-pearl> It shouldn't have even had time to get past "/home/engineerpearl0/gitasist/./gitupdate pull" [[a script I wrote]]
[03:56] <sarnold> btw all the /./ things in your paths aren't needed
[03:57] <sarnold> . 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] <engineer-pearl> it is asking for a password... I thought screen would protect me from that but...
[03:57] <engineer-pearl> I thought the ./ helped to exicute things
[03:58] <sarnold> 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
[03:59] <engineer-pearl> hmm... hold on I need to figure out an escape and move my command to my root folder ((long story short: oops"
[04:00] <engineer-pearl> Would screen close imediatly if it were running as a dameon and it ran into a request for password?
[04:01] <sarnold> 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] <engineer-pearl> well I adjusted that so it doesn't happen again
[04:03] <engineer-pearl> still no screen
[04:03] <engineer-pearl> I don't understand rrrrrgh some error logs would be helpful here!!!!
[04:04] <sarnold> you can try looking in /var/spool/mail/
[04:07] <engineer-pearl> I found something odd but irrelevant.
[04:08] <engineer-pearl> :/
[04:18] <engineer-pearl> here's something: there's something about a crontab.allow list
[04:18] <engineer-pearl> which of course I misspelled
[04:20] <sarnold> 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] <engineer-pearl> not according to the man page
[04:21] <engineer-pearl> "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] <engineer-pearl> so it's hit or miss
[04:22] <engineer-pearl> wait, is @reboot allowed for basic users?
[04:22] <sarnold> 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] <engineer-pearl> YEP THAT'S THE PROBLEM RIGHT THERE
[04:28] <engineer-pearl> or not
[05:09] <engineer-pearl> I have an update towards the good! I have error logs now!
[05:15] <sarnold> engineer-pearl: great! :) that is a worthy accomplishments :)
[05:15] <engineer-pearl> still working on finding a replacement for runuser though. aparently that's not allowed. -_o_-
[05:17] <engineer-pearl> oooh found one
[05:17] <engineer-pearl> giving it a test
[05:18] <sarnold> uh
[05:18] <sarnold> why not just use the specified user's crontab?
[05:18] <engineer-pearl> because that won't run at reboot
[05:18] <engineer-pearl> :/
[05:18] <sarnold> o_O
[05:18] <engineer-pearl> That was my first setup
[05:19] <sarnold> 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] <engineer-pearl> You're talking over my head but I'm listening
[05:21] <engineer-pearl> 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] <engineer-pearl> ((I have never gotten that thing to work))
[05:21] <sarnold> what release are you on?
[05:22] <engineer-pearl> Ubuntu 16.04.1 LTS
[05:22] <engineer-pearl> (I just upgraded today
[05:34] <sarnold> 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] <sarnold> 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] <engineer-pearl> 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] <sarnold> I think systemd is more flexible than upstart; I think upstart is easier than systemd
[05:35] <sarnold> but 16.04 LTS uses systemd as init and service manager, so that's what's there :) hehe
[05:36] <engineer-pearl> Okay then I'll switch over
[05:36] <sarnold> there are a lot of examples in /lib/systemd/system/ that you can copy from too :)
[05:37] <engineer-pearl> 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] <engineer-pearl> ((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] <sarnold> ahhh so screen wasn't just for getting it to run persistently? hrm...
[05:37] <engineer-pearl> oh is that going to make it weirder
[05:38] <sarnold> 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] <engineer-pearl> Lots of fancy files... doesn't look to be in bash but idk if I'd know them at this level...
[05:41] <sarnold> 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] <sarnold> indeed it's very much not bash. that's good and bad.
[05:41] <engineer-pearl> :/ so much for just getting a script to run at startup I guess
[05:41] <sarnold> 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] <engineer-pearl> wait this line looks like what I want! Ubuntu 16.04.1 LTS
[05:42] <engineer-pearl> hold on didn't copy
[05:42] <engineer-pearl> ExecStart=/usr/bin/screen -d -m -S rtorrent /usr/bin/rtorrent
[05:42] <sarnold> I thought you'd like that bit :)
[05:44] <engineer-pearl> I have questions but it is late on a night where I have to be up bright and early
[05:44] <engineer-pearl> :/
[05:44] <sarnold> ugh :(
[05:44] <engineer-pearl> oh poop poop poop
[05:45] <engineer-pearl> IIf I do it this way, I don't know how to make it so I can attach
[05:45] <engineer-pearl> It will be owned by not-me
[05:45] <sarnold> it'd be owned by whatever user you configure here
[05:45] <engineer-pearl> If it is owned by me, I should be able to attach, right?
[05:46] <sarnold> so you could do something like 'sudo -u USERNAME screen -RAD'
[05:51] <engineer-pearl> I'm not entirely sure about the command but yeah, that seems about right, expecially the r
[05:52] <sarnold> hehe
[05:52] <sarnold> screen -RAD was just the thing I memorized because screen's baffling array of command line options is baffling
[05:52] <engineer-pearl> okay, so I've got the tabs, and I'll look into it later
[05:52] <sarnold> (I switched to tmux ages ago for no real good reason)
[05:53] <sarnold> there I think it's just 'tmux attach' :) heh
[05:53] <engineer-pearl> but for now I bid thee a good night
[05:53] <sarnold> you also, have fun :)
[08:25] <lordievader> Good morning
[11:10] <SipriusPT> Hello guys
[11:11] <SipriusPT> 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] <SipriusPT> 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] <SipriusPT> test@domainX.pt test@domainX.pt:qwe12
[11:11] <SipriusPT> With getmail i was using as destination:
[11:11] <SipriusPT> [destination] type = MDA_external path = /usr/sbin/sendmail arguments = ("-bm", "test") unixfrom = true
[11:12] <SipriusPT> 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] <SipriusPT> 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] <SipriusPT> Dec  6 14:37:12 remote.domainX.pt postfix/smtp[28504]: 0B8BD259F57: to=<test@gmail.com>, orig_to=<test@remote.domainX.pt>, 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 <Xserver@remote.domainX.pt> 550-No Such User Here 550 Sender verify failed (in reply to RCPT TO command))
[11:12] <SipriusPT> 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] <SipriusPT> 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] <SipriusPT> 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] <SipriusPT> Here is my main.cf: http://pastebin.com/d9hZaTwp
[13:43] <jonah> 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] <mybalzitch> jonah: whats your isp say
[13:45] <jonah> mybalzitch: they are useless and not answering the phone
[13:46] <mybalzitch> do your mrtg/cacti/whatever port graphs indicate you are being dos'd?
[13:57] <zul> coreycb:im going to drop the arm patch we were carrying for nova its no longer needed apparently
[13:58] <coreycb> zul, ok if you are sure
[13:59] <zul> coreycb: i asked
[13:59] <coreycb> zul, cool
[14:27] <zul> coreycb: http://pastebin.ubuntu.com/23603616/
[14:33] <showaz> Greeting, what is best to use a RAID controller support ubuntu? video streaming storage="40TB" & SSD
[14:34] <coreycb> zul, maybe transport_url is missing from nova.conf?
[14:36] <zul> coreycb: yep
[14:37] <zul> coreycb: ill figure it out
[15:30] <zul> coreycb: think i have a fix...testing it
[16:12] <zul> coreycb: nova should be fine again
[16:30] <protn> hi
[16:30] <protn> who here uses evolution?
[16:30] <protn> it acting weird with some accounts
[16:30] <protn> wont read imap folder
[16:30] <protn> yet
[16:35] <protn> hehehehe
[17:15] <Pinkamena_D> 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] <tarpman> Pinkamena_D: I don't believe ldapsearch has built-in support for chasing references
[17:36] <SipriusPT> hello guys
[17:37] <SipriusPT> http://serverfault.com/questions/819844/not-able-to-forward-mail-from-external-domains-through-relays
[17:37] <SipriusPT> anyone?
[19:30] <solidpizza> 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] <solidpizza> and is there a guide that works for this?
[19:33] <tarpman> 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] <Pici> solidpizza: I like gitlab, but its definitely a heavier solution.
[20:56] <engineer-pearl> 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] <engineer-pearl> Status upstart gives the error ""com.ubuntu.Upstart" does not exist"
[21:05] <tarpman> engineer-pearl: you said you're using ubuntu 16.04? upstart is gone, replaced by systemd
[21:06] <engineer-pearl> oops I meant status systemd
[21:06] <tarpman> 'status' is a command that interacts with upstart
[21:06] <engineer-pearl> 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] <engineer-pearl> So what's systemd's method of checking things?
[21:08] <tarpman> service xx status
[21:08] <engineer-pearl> oh backwards got it
[21:08] <tarpman> 'service' is a generic tool that will handle all kinds of services (init scripts / upstart / systemd) properly
[21:10] <engineer-pearl> well it looks like I can't have it check its own service... hmm
[21:10] <tarpman> what are you trying to do, exactly?
[21:10] <engineer-pearl> 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] <tarpman> I meant which service are you trying to check the status of
[21:12] <engineer-pearl> 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] <engineer-pearl> Looks like it's not found.
[21:16] <engineer-pearl> I was following the instructions here: http://www.linuxveda.com/2014/04/28/autostart-process-gnu-screen-systemd/
[21:16] <engineer-pearl> Are there better ones somewhere?
[22:10] <rebootd> 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] <rebootd> fyi, it was an ethernet adapter conflict. server was confused about which interface should respond.