Russ Uno Posted October 14, 2015 Posted October 14, 2015 I set up a Cron script for powerdown at 11:53 PM for testing and forgot to change/remove it. This morning I started a PreClear which will run 28 hours and I don't want my server to try and shut down. Is there a way to stop the Cron script without rebooting? Is there a way via Telnet?
archedraft Posted October 14, 2015 Posted October 14, 2015 I'm guessing you have a line in your "go" file that copies your powerdown script into cron.daily?
Russ Uno Posted October 14, 2015 Author Posted October 14, 2015 No the script is in the Powerdown folder.. Not in the go script.
archedraft Posted October 14, 2015 Posted October 14, 2015 No the script is in the Powerdown folder.. Not in the go script. How do you have it set to start 11:53 PM then? My understand of the powerdown S00.sh scripts is that they only get triggered when you shutdown the array.
Russ Uno Posted October 14, 2015 Author Posted October 14, 2015 How do you have it set to start 11:53 PM then? My understand of the powerdown S00.sh scripts is that they only get triggered when you shutdown the array. It works. # Daily automated powerdown at fixed time: 53 23 * * * /usr/local/sbin/powerdown &> /dev/null Reply #356 in the following link: http://lime-technology.com/forum/index.php?topic=31735.msg372888#msg372888
Russ Uno Posted October 14, 2015 Author Posted October 14, 2015 I got as far as: ps aux and got this below. The only thing I see that looks like it might be the one is #1436 but I'm not a Linux expert or even remotely close. So if I'm correct I should issue: kill 1436 Am I right or wrong? root@StudioServer:~# ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 4368 1648 ? Ss 09:21 0:04 init root 2 0.0 0.0 0 0 ? S 09:21 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S 09:21 0:00 [ksoftirqd/0] root 4 0.0 0.0 0 0 ? S 09:21 0:00 [kworker/0:0] root 5 0.0 0.0 0 0 ? S< 09:21 0:00 [kworker/0:0H] root 7 0.0 0.0 0 0 ? S 09:21 0:13 [rcu_preempt] root 8 0.0 0.0 0 0 ? S 09:21 0:00 [rcu_sched] root 9 0.0 0.0 0 0 ? S 09:21 0:00 [rcu_bh] root 10 0.0 0.0 0 0 ? S 09:21 0:00 [migration/0] root 11 0.0 0.0 0 0 ? S 09:21 0:00 [migration/1] root 12 0.0 0.0 0 0 ? S 09:21 0:00 [ksoftirqd/1] root 13 0.0 0.0 0 0 ? S 09:21 0:01 [kworker/1:0] root 14 0.0 0.0 0 0 ? S< 09:21 0:00 [kworker/1:0H] root 15 0.0 0.0 0 0 ? S 09:21 0:00 [migration/2] root 16 0.0 0.0 0 0 ? S 09:21 0:00 [ksoftirqd/2] root 18 0.0 0.0 0 0 ? S< 09:21 0:00 [kworker/2:0H] root 19 0.0 0.0 0 0 ? S 09:21 0:00 [migration/3] root 20 0.0 0.0 0 0 ? S 09:21 0:00 [ksoftirqd/3] root 21 0.0 0.0 0 0 ? S 09:21 0:01 [kworker/3:0] root 22 0.0 0.0 0 0 ? S< 09:21 0:00 [kworker/3:0H] root 23 0.0 0.0 0 0 ? S< 09:21 0:00 [khelper] root 24 0.0 0.0 0 0 ? S 09:21 0:00 [kdevtmpfs] root 25 0.0 0.0 0 0 ? S< 09:21 0:00 [netns] root 28 0.0 0.0 0 0 ? S< 09:21 0:00 [perf] root 262 0.0 0.0 0 0 ? S< 09:21 0:00 [writeback] root 264 0.0 0.0 0 0 ? SN 09:21 0:00 [ksmd] root 265 0.0 0.0 0 0 ? SN 09:21 0:00 [khugepaged] root 266 0.0 0.0 0 0 ? S< 09:21 0:00 [crypto] root 267 0.0 0.0 0 0 ? S< 09:21 0:00 [kintegrityd] root 268 0.0 0.0 0 0 ? S< 09:21 0:00 [bioset] root 270 0.0 0.0 0 0 ? S< 09:21 0:00 [kblockd] root 442 0.0 0.0 0 0 ? S< 09:21 0:00 [ata_sff] root 460 0.0 0.0 0 0 ? S< 09:21 0:00 [devfreq_wq] root 564 0.0 0.0 0 0 ? S< 09:21 0:00 [rpciod] root 565 0.0 0.0 0 0 ? S 09:21 0:00 [kworker/2:1] root 566 0.0 0.0 0 0 ? S 09:21 0:01 [kworker/0:1] root 600 1.0 0.0 0 0 ? R 09:21 5:01 [kswapd0] root 671 0.0 0.0 0 0 ? S 09:21 0:00 [fsnotify_mark] root 688 0.0 0.0 0 0 ? S< 09:21 0:00 [nfsiod] root 692 0.0 0.0 0 0 ? S< 09:21 0:00 [cifsiod] root 704 0.0 0.0 0 0 ? S< 09:21 0:00 [xfsalloc] root 705 0.0 0.0 0 0 ? S< 09:21 0:00 [xfs_mru_cache] root 747 0.0 0.0 0 0 ? S< 09:21 0:00 [acpi_thermal_] root 814 0.0 0.0 0 0 ? S 09:21 0:00 [kworker/1:1] root 856 0.0 0.0 0 0 ? S< 09:21 0:00 [vfio-irqfd-cl] root 874 0.0 0.0 0 0 ? S 09:21 0:00 [kworker/3:1] root 945 0.0 0.0 0 0 ? S< 09:21 0:00 [bioset] root 952 0.0 0.0 0 0 ? S< 09:21 0:00 [deferwq] root 968 0.0 0.0 0 0 ? S 09:21 0:00 [kworker/2:2] root 972 0.0 0.0 0 0 ? S 09:21 0:00 [scsi_eh_0] root 973 0.0 0.0 0 0 ? S< 09:21 0:00 [scsi_tmf_0] root 974 0.0 0.0 0 0 ? S 09:21 0:00 [usb-storage] root 1020 0.0 0.0 21692 2516 ? Ss 09:21 0:00 /sbin/udevd --d root 1055 0.0 0.0 0 0 ? SN 09:21 0:00 [kipmi0] root 1056 0.0 0.0 0 0 ? S 09:21 0:00 [scsi_eh_1] root 1057 0.0 0.0 0 0 ? S< 09:21 0:00 [scsi_tmf_1] root 1058 0.0 0.0 0 0 ? S 09:21 0:00 [scsi_eh_2] root 1059 0.0 0.0 0 0 ? S< 09:21 0:00 [scsi_tmf_2] root 1060 0.0 0.0 0 0 ? S 09:21 0:00 [scsi_eh_3] root 1061 0.0 0.0 0 0 ? S< 09:21 0:00 [scsi_tmf_3] root 1062 0.0 0.0 0 0 ? S 09:21 0:00 [scsi_eh_4] root 1063 0.0 0.0 0 0 ? S< 09:21 0:00 [scsi_tmf_4] root 1064 0.0 0.0 0 0 ? S 09:21 0:00 [scsi_eh_5] root 1065 0.0 0.0 0 0 ? S< 09:21 0:00 [scsi_tmf_5] root 1066 0.0 0.0 0 0 ? S 09:21 0:00 [scsi_eh_6] root 1067 0.0 0.0 0 0 ? S< 09:21 0:00 [scsi_tmf_6] root 1180 0.0 0.0 0 0 ? S< 09:22 0:00 [kworker/1:1H] root 1186 0.0 0.0 233592 2348 ? Ssl 09:22 0:00 /usr/sbin/rsysl bin 1386 0.0 0.0 6856 1592 ? Ss 09:22 0:00 /sbin/rpc.portm rpc 1390 0.0 0.0 12836 1840 ? Ss 09:22 0:00 /sbin/rpc.statd root 1400 0.0 0.0 6460 1628 ? Ss 09:22 0:00 /usr/sbin/inetd root 1410 0.0 0.0 24056 2768 ? Ss 09:22 0:00 /usr/sbin/sshd root 1422 0.0 0.0 4384 1492 ? Ss 09:22 0:00 /usr/sbin/acpid 81 1434 0.0 0.0 17436 200 ? Ss 09:22 0:00 /usr/bin/dbus-d root 1436 0.0 0.0 6468 1660 ? Ss 09:22 0:00 /usr/sbin/crond daemon 1438 0.0 0.0 6460 100 ? Ss 09:22 0:00 /usr/sbin/atd - root 1443 0.0 0.1 193384 5032 ? Ss 09:22 0:00 /usr/sbin/nmbd root 1445 0.0 0.3 271220 14288 ? Ss 09:22 0:00 /usr/sbin/smbd root 1452 0.0 0.0 9840 2604 ? S 09:22 0:21 /bin/bash /usr/ root 1867 0.0 0.0 0 0 ? S< 09:22 0:00 [kworker/3:1H] root 2403 0.0 0.0 0 0 ? S 17:11 0:00 [kworker/u8:0] root 3169 0.0 0.0 0 0 ? S< 09:22 0:01 [kworker/2:1H] root 3712 0.0 0.0 4364 740 ? S 17:14 0:00 sleep 1 root 3713 0.0 0.0 12088 2868 pts/0 S+ 17:14 0:00 /bin/bash /boot root 3714 0.0 0.0 12088 2804 pts/0 S+ 17:14 0:00 /bin/bash /boot root 3715 0.0 0.0 13336 3412 pts/0 D+ 17:14 0:00 smartctl -A /de root 3716 0.0 0.0 4848 1760 pts/0 S+ 17:14 0:00 grep -i tempera root 3717 0.0 0.0 8756 1672 pts/0 S+ 17:14 0:00 sed 1q root 3718 0.0 0.0 19540 2536 pts/0 S+ 17:14 0:00 awk { print $10 root 3719 0.0 0.0 9352 2116 pts/1 R+ 17:14 0:00 ps aux root 6389 0.0 0.0 21688 2436 ? S 14:28 0:00 /sbin/udevd --d root 6465 8.3 0.0 10868 3832 pts/0 D+ 14:28 13:52 dd if=/dev/zero root 10625 0.0 0.0 89236 3616 ? Sl 09:22 0:21 /usr/local/sbin root 10626 0.0 0.0 6472 1692 tty1 Ss+ 09:22 0:00 /sbin/agetty -- root 10627 0.0 0.0 6472 1728 tty2 Ss+ 09:22 0:00 /sbin/agetty 38 root 10628 0.0 0.0 6472 1744 tty3 Ss+ 09:22 0:00 /sbin/agetty 38 root 10629 0.0 0.0 6472 1712 tty4 Ss+ 09:22 0:00 /sbin/agetty 38 root 10630 0.0 0.0 6472 1720 tty5 Ss+ 09:22 0:00 /sbin/agetty 38 root 10631 0.0 0.0 6472 1628 tty6 Ss+ 09:22 0:00 /sbin/agetty 38 root 10645 0.0 0.0 0 0 ? S< 09:22 0:00 [md] root 10646 0.0 0.0 0 0 ? S 09:22 0:00 [mdrecoveryd] root 10650 0.0 0.0 0 0 ? S 09:22 0:00 [spinupd] root 10651 0.0 0.0 0 0 ? S 09:22 0:00 [spinupd] root 10652 0.0 0.0 0 0 ? S 09:22 0:00 [spinupd] root 10653 0.0 0.0 0 0 ? S 09:22 0:00 [spinupd] root 10680 0.0 0.0 0 0 ? S 09:22 0:00 [unraidd] root 10692 0.0 0.0 0 0 ? S< 09:22 0:00 [reiserfs/md1] root 10702 0.0 0.0 0 0 ? S< 09:22 0:00 [reiserfs/md2] root 10714 0.0 0.0 0 0 ? S< 09:22 0:00 [xfs-buf/md3] root 10715 0.0 0.0 0 0 ? S< 09:22 0:00 [xfs-data/md3] root 10716 0.0 0.0 0 0 ? S< 09:22 0:00 [xfs-conv/md3] root 10717 0.0 0.0 0 0 ? S< 09:22 0:00 [xfs-cil/md3] root 10718 0.0 0.0 0 0 ? S 09:22 0:00 [xfsaild/md3] root 10730 0.0 0.0 220516 1140 ? Ssl 09:22 0:00 /usr/local/sbin root 10756 0.0 0.0 45536 3384 ? S 09:22 0:00 /usr/sbin/netat avahi 10765 0.0 0.0 34320 2780 ? S 09:22 0:00 avahi-daemon: r avahi 10766 0.0 0.0 34188 240 ? S 09:22 0:00 avahi-daemon: c root 10774 0.0 0.0 12744 1568 ? S 09:22 0:00 /usr/sbin/avahi root 10788 0.0 0.1 46168 4396 ? S 09:22 0:00 /usr/sbin/afpd root 10789 0.0 0.0 34924 3708 ? S 09:22 0:00 /usr/sbin/cnid_ root 13797 0.0 0.1 21312 4032 ? Ss 09:43 0:17 /usr/bin/tmux n root 13798 0.0 0.0 13308 3296 pts/0 Ss 09:43 0:00 -sh root 13813 0.1 0.0 12088 3916 pts/0 S+ 09:43 0:37 /bin/bash /boot root 13941 3.3 0.0 0 0 ? D 13:44 7:01 [kworker/u8:1] root 14320 0.0 0.0 0 0 ? S< 09:43 0:00 [kworker/0:1H] root 16879 0.0 0.0 0 0 ? S 14:56 0:00 [kworker/u8:2] root 19505 0.0 0.3 290448 14748 ? S 12:43 0:00 /usr/sbin/smbd root 22107 0.0 0.0 12804 1828 ? Ss 16:37 0:00 in.telnetd: iMa root 22108 0.0 0.0 13316 3432 pts/1 Ss 16:37 0:00 -bash root 30511 0.0 0.0 0 0 ? S 16:59 0:00 [kworker/u8:3] root@StudioServer:~#
archedraft Posted October 14, 2015 Posted October 14, 2015 Hmm darn, I'm not sure how the powerdown package handles loading scripts. I use my go file to load them in.
Russ Uno Posted October 15, 2015 Author Posted October 15, 2015 Hmm darn, I'm not sure how the powerdown package handles loading scripts. I use my go file to load them in. Well I use to do the same but figured I'd try this way. The way I use to do it when I used the go script method was: Cancel Powerdown or Cron Job atq command to see what is in the "at" queue and then It will give you numbered "jobs" pending. To see what a specific job is, type: at -c JJ where JJ = the job number. To cancel the job, type: atrm JJ where JJ = the job number. But for some reason wouldn't work that way unless the script wasn't working since I was experimenting at the time. I did find and try this to find active Cron jobs. ps -ef|grep cron as well as this method I posted. ps -aux Then tried this to kill it. kill 1436 where 1436 was the PID. Now the Cron is not listed anymore when i check so I assume that killed it. I'll find out at 11:53 pm I guess and I still have 17 hrs to go. edit: Maybe this script method will reactivate the next day if cancelled today, not really sure just guessing.
trurl Posted October 15, 2015 Posted October 15, 2015 Delete that .cron file or rename it so it doesn't have a .cron extension. Then at the command line update_cron
Russ Uno Posted October 15, 2015 Author Posted October 15, 2015 Delete that .cron file or rename it so it doesn't have a .cron extension. Then at the command line update_cron I commented out the lines in the file and ran the above. I would assume that would do the same. It doesn't show up anymore when I use ps -ef|grep cron I'll have to wait until this preclear is done to experiment.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.