On 28.10.2014 10:59, poma wrote:
> On 28.10.2014 10:18, Angelo Moreschini wrote:
>> I would say that this thread is the continuation of a my preceding thread :
>>
>> “selecting some kind of files using the resync command”
>>
>>
>>  There I got help in order to make the backup of some my critical files.
>>
>> Now I am able to backing up these files using a shell script from the line
>> command.
>>
>> But I would like also that this backup runs automatically when the computer
>> boots.
>>
>>
>>  I know that this task is performed by the rc.local file, in Linux.
> 
> :)
> https://wiki.archlinux.org/index.php/Systemd_FAQ#How_can_I_make_a_script_start_during_the_boot_process.3F
> 
> Simple as that.
> 

BTW 

/etc/systemd/system/replaces-ancient-rc.local.service
[Unit]
Description=Replaces ancient /etc/rc.d/rc.local

[Service]
Type=oneshot
ExecStart=/usr/bin/my-script-1st
ExecStart=/usr/bin/my-script-2nd
ExecStart=/usr/bin/my-script-3rd

[Install]
WantedBy=multi-user.target 


$ man 5 systemd.service


poma


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to