Please cd to the root of your directory structure and run
Also list the existing symlinks
So we get a clear picture.
Then please say at which directory should the symlink be located and where does it point to.
This User Gave Thanks to MadeInGermany For This Post:
Hi,
I have created symlink under /.
It is /latest Pointing to /home/users/neel_prog_V1.0.
(Note: I have created this symlink so that when version get changed I will need to change only symlink instead of doing changes in /etc/exports.)
I have shared this symlink with NFS. in /etc/exports I... (0 Replies)
hi...
I have a folder<abc> under /root folder. I want to create a symlink such that when i click on folder<abc> under root, should display my home folder (home/krish).
Immediate inputs appreciated..... (1 Reply)
Hi all,
I want to create a symlink on a link file, i mean, there is a file which is actually a symlink of some version. Now i want to create one more symlink on that link file.
EX: there is a file:
uat -> version
prod -> version
Now i want to create one more link on these 'uat' and... (1 Reply)
Hi Forums,
I got a little problem, I made a few modifications to the code of the launch script of a testing server(minecraft) and now updating is broken aswell as the automatic directory creation.
These Lines somehow create an endless symlink that refers to itself and I don't know how to fix... (0 Replies)
Hello. I am working on creating a script to recursively run on my media collection. The goal is to recreate the folder structure, but with slight changes in the folder names based on my rules. The folders will also include the .jpg & .mkv files, renamed according to a similar set of rules.
... (4 Replies)
Hello,
can someone please suggest or is it possible to hide the path for the link from viewing it from remote users.
for examples.
as root user login
#ls -l
lrwxrwxrwx 1 root root 43 Oct 2 16:05 sftpdata -> /data/sftphome/sftpuser1/sftpdata/
#pwd
/home/user1
#
when user1 logs... (4 Replies)
Hi All,
Is there any way to create a symlink that will point to last 1000 line of a log file. My symlink will always point to "tail -1000 logfile".
This can be achieved by writing a script and scheduling with high frequency, but I am looking for some other alternatives.
Please let me know... (8 Replies)
i would like to remove a directory and also symlink target inside.
my_directory
-- file1 -> /targetpath/file1
-- file2 -> /targetpath/file2
rm -rf my_directory will not remove symlink target.
rm -rf "`readlink -f file1`" will only remove target if specifying the symlink is specified
... (4 Replies)
I am trying to setup my plex server to use symlinks rather than host the movie files.
in my storage directory, i have both movies(some in subdirectory of the name and some just in the parent directory) and tvshows, which have subdirectories for each season, which contains the episodes
i would... (3 Replies)
Hello,
On Solaris 10, here are entries for logs in httpd.conf
ErrorLog "|/export/apache/apache-2.2.17/bin/rotatelogs -l -f /var/log/apache/error_log.%Y%m%d 86400"
It keeps creating daily logs with below names -
-rw-r--r-- 1 root root 1016747232 Apr 5 23:59... (16 Replies)
Discussion started by: solaris_1977
16 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_symlink
OCF_HEARTBEAT_SYMLIN(7) OCF resource agents OCF_HEARTBEAT_SYMLIN(7)NAME
ocf_heartbeat_symlink - Manages a symbolic link
SYNOPSIS
symlink [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
This resource agent that manages a symbolic link (symlink).
It is primarily intended to manage configuration files which should be enabled or disabled based on where the resource is running, such as
cron job definitions and the like.
SUPPORTED PARAMETERS
link
Full path of the symbolic link to be managed. This must obviously be in a filesystem that supports symbolic links.
(required, string, no default)
target
Full path to the link target (the file or directory which the symlink points to).
(required, string, no default)
backup_suffix
A suffix to append to any files that the resource agent moves out of the way because they clash with "link".
If this is unset (the default), then the resource agent will simply refuse to create a symlink if it clashes with an existing file.
(optional, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 15.
stop
Stops the resource. Suggested minimum timeout: 15.
monitor
Performs a detailed status check. Suggested minimum timeout: 15. Suggested interval: 60.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 10.
EXAMPLE
The following is an example configuration for a symlink resource using the crm(8) shell:
primitive p_symlink ocf:heartbeat:symlink
params
link=string
target=string
op monitor depth="0" timeout="15" interval="60"
SEE ALSO
http://www.linux-ha.org/wiki/symlink_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_SYMLIN(7)